I made a program in OmegaT
I started on this platform to start using easylenguage (I I program in other languages)
I am writing some code that gives me error
in practice assign a variable when I send a trade.
then check that variable and if the volatility increases close the position
the problem is not in the efficiency of the program
but in the print which should not be done
...
VARS: giallaup (0), gialladw (0), bluup (0), bludw (0), lr (0), bbw (0), pt (0), bbwv(0);
...
bbw= delta_BollingerWidth(price, lenbb, 1);
lr = linearregvaluefc (price, lenlr, 0);
if lr> bluup then
begin;
sell;
pt = -1;
bbwv= bbw;
end;
if pt = -1 then begin;
if MarketPosition = -1 and bbw> bbwv then begin;
exitshort;
print (bbw, " ", bbwv);
end;
if MarketPosition = 1 and bbw> bbwv then begin;
exitlong;
print (bbw, " ", bbwv);
end;
end;
enters the positions, but give me the print
10.00 10.00
10.00 10.00
10.00 10.00
I do not understand why, if the two values ​​must be different ---> bbw> bbwv
why gives me the print!????
I started on this platform to start using easylenguage (I I program in other languages)
I am writing some code that gives me error
in practice assign a variable when I send a trade.
then check that variable and if the volatility increases close the position
the problem is not in the efficiency of the program
but in the print which should not be done
...
VARS: giallaup (0), gialladw (0), bluup (0), bludw (0), lr (0), bbw (0), pt (0), bbwv(0);
...
bbw= delta_BollingerWidth(price, lenbb, 1);
lr = linearregvaluefc (price, lenlr, 0);
if lr> bluup then
begin;
sell;
pt = -1;
bbwv= bbw;
end;
if pt = -1 then begin;
if MarketPosition = -1 and bbw> bbwv then begin;
exitshort;
print (bbw, " ", bbwv);
end;
if MarketPosition = 1 and bbw> bbwv then begin;
exitlong;
print (bbw, " ", bbwv);
end;
end;
enters the positions, but give me the print
10.00 10.00
10.00 10.00
10.00 10.00
I do not understand why, if the two values ​​must be different ---> bbw> bbwv
why gives me the print!????
