I’m just testing out the new MTF on my new end of day free trial version of PRT and I have a calculation in my code to give a variable size of position to open. The code still only opens a position size of 1 even though if I graph the variable positionsize it shows that it is calculating correctly.
Is it not possible to have a variable position size in the end of day version or am I missing some coding trick that is not needed in my IG – PRT platform?
totrsi = (rsi1 + rsi2 + rsi3 + rsi4)/4
positionsize = round((1 + ((100 - totrsi)/100))*100)/100
if not onmarket and (my conditions) then
buy positionsize * pipsize contracts at market
endif