H, I’m looking for some prompts on….
Add position if in profit
or
Add position if point size is > than 15
with Regards, Thanks
There you go
N = 0 //or 15 or any treshold you prefer
ProfitPips = PositionPrice * PositionPerf / PipSize
If ProfitPips > N then
If LongOnMarket then
Buy 1 contract at Market
Elsif ShortOnMarket then
Sellshort 1 contract at Market
Endif
Endif
You can check positionperf for a positive order (in profit):
if positionperf(0) > 0 then
buy at market
endif
or a distance in points:
if close - tradeprice > 15 * pointsize then
buy at market
endif