I wanted to write a program which always calculates the position size exactly and writes it in the chart.
but I can't get it right
Code: Select all
inputs:
TextBarsBack( 10 ),
TextPricePercent( 50 ),
Position (1) ;
variables:
var1 (0);
var1 = close / Position;
if LastBarOnChart then
begin
Value1 = Text_Float( var1, TextBarsBack, TextPricePercent ) ;
end ;