Quote:
|
Originally Posted by trevman2005
that worked, very much appreciated, but why the "ticket" and "orderselect" i'm reading through your tutorials atm, i apologise if i missed this info. thanks again.
|
You're welcome!
If you noticed the code:
1- I've changed
if(Close[2]<ma && Close[1]>ma)
To:
if(Close[1]<ma && Close[0]>ma)
Because the index of the new bar is 0 and the index of the previous one is 1.
3- I've changed stop to stop*Point and profit to profit*Point.