I would like to have a program which would set a condition, lets say "Permit Buy" to "on" if the CCI becomes oversold, and to place a buy when the CCI crosses 0 and "Permit to Buy" is "on". When the buy is placed under these conditions, I would like to reset "Permit Buy" to off.
How would you program this?
Size:
Color:
Size:
Color:
Something like this:
CODE:
Please log in to see this code.
Size:
Color:
Thanks.
Size:
Color:
Just an observation. I've noticed that effect of the setup timeout (setupLastsFor) is hardly visible with your condition (CCI below -100 and crosses above 0). It happens too quickly. But setting a higher threshold (+100) for the cross over lets one evaluate how it performs on a Wealth-Lab chart.
Size:
Color: