Forums › ProRealTime English forum › ProOrder support › buy at pivot, sell at resistance 1 › Reply To: buy at pivot, sell at resistance 1
01/23/2019 at 10:26 PM
#89512
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Pivot= (DHigh(1) + DLow(1) + Dclose(1))/3 if not onmarket and close crosses over pivot then buy 1 contract at market res1 = 2*((DHigh(1) + DLow(1) + Dclose(1))/3) - DLow(1) sell at res1 limit sl=low sell at sl stop endif if longonmarket then sell at sl stop sell at res1 limit endif |
Thanks for your reaction!
I change the code to this one^
It’s look like better.