How in programming, can I refer to the trough before the last trough? For instance, if the last trough is higher than the one before it, Buy. If the last trough is lower than the one before it, do nothing?
Size:
Color:
Size:
Color:
Just keep in mind that to create a trough, several [rising] bars will have already passed before you can enter a buy. You're probably not going to see the results that you hope for with this type of system (it's usually better to buy when others are selling), but of course, test everything! :)
Size:
Color:
Thanks for the additional info.
In Mark Crisp 123 System Long, there is a statement that I do not understand:
CODE:
Please log in to see this code.
I assume that if the SellAtStop if false, it will SellAtLImit. But does it sell at the Stop if it is True?
Is this a shortcut for not using the "else" statement?
Size:
Color:
SellAtStop will execute under all conditions. As you can see in the QuickRef, exit methods return a boolean result. If the result is false, i.e. SellAtStop haven't exited the Position, then SellAtLimit will be processed. Otherwise SellAtLimit will not be evaluated at this bar.
Size:
Color:
Thanks
Size:
Color:
I don't think there's a way to trade that, though, in live trading.
Size:
Color: