Read an external constructed var value? - page 3

 
JJF:

My system picks the 'long range' automatically by choosing the lowest buy and the highest sell (separately for each pair or commodity).

Aahh! So you mean that you are looking through the list of trades for the lowest buy and the highest sell and writing down the ticket numbers to enter into an EA in the form of extern variables?

If that is the case then the EA can do that for you. That is a trivial task. The EA can start, read all the trades and remember which are the lowest buy and highest sell and save those ticket numbers. No action needed by you at all. Or it could be the top two lowest buys and highest sells or whatever you like. Once you work out for yourself what you need to do in a logical sequence then coding it is simple. The biggest problem people have is thinking in logical steps like you need to do to write the program.

Maybe you haven't got your system's rules fully thought through enough to code yet, but that would obviously be a goal to work towards since it makes backtesting much easier.

 
dabbler:

Aahh! So you mean that you are looking through the list of trades for the lowest buy and the highest sell and writing down the ticket numbers to enter into an EA in the form of extern variables?


Hi dabbler,

No, the script does it for me automatically.
The external var issue belong to a different script.

James
Reason: