AbzParticipant
Veteran
hello
i have an scenario with positionperf(1).
if i traded on monday and tuesday there was no trades on wednesday if i refer to ” if positionperf(1) > 1 then ………..” will it use the trade on monday then?
Yes it refers to the previous trade of the current strategy’ trades history.
ramaParticipant
Senior
I am using this code which is not working any reasons?
x2=1
IF longonmarket and positionperf(1) > .00015 and COUNTOFPOSITION <= 100 THEN
buy 1 perpoint at tradeprice+x2 stop
endif
my intention is to open new position on dax after .00015% gain that is on 12800=.00015*120800/100=1.92
@ tradepirce+2.92 = 12800+2.92(from the last order traded)
You can “GRAPH positionperf”, to have a clear view of what positionperf is returning as a value. Then you’ll be able to make conclusion on what’s wrong in your code or your calculation.