Code: Select all
If MarketPosition = 0 Then begin
If condition1 = true and condition 2 = true then begin
buy next bar at market;
When applied to a chart lets say it takes 10 trades, yet the print will print out hundreds of lines saying 'ordered executed", when it should only print when all conditions are met and thus be equal to the number of trades executed.
Its like its getting into this section of the code even though the conditions have not been met?
Has anyone else had this problem? or is there something wrong with the code?