Check difference of previous bar - page 3

 
:: Again... little promotion :: from begin 2007 till ... now, start cap. 5.000$
 
IN10TION:
:: Why not delete everything, and make/do it with "Order" only, check further in your code if it's negative or positive & value/amount

int Order = (Close[1]-Open[1])/Point;

Isn't the code doing that? Think ClOp = Order.

 
:: yes it does, but I mean also losing the 2 if() statements, because further in the code you will use "Sellsignal" & "Buysignal", and do an if() statement again if it's true or false... so why not keep one "int" integer named "Order" and replace it with the Buy-Sell-Signal if() statements, you will win processing time (less if()'s) and memory by 3 less variables
TheRumpledOne:
Isn't the code doing that? Think ClOp = Order.
Reason: