|
Hi,
Would you like to trasfer the following strategy of WLD into OQ?
I tried several times but failed.
var BAR, P: integer;
InstallprofitTarget( 5 );
for Bar := 21 to BarCount() - 1 do
begin
ApplyAutoStops( Bar );
If ( Momentum( Bar, #Close, 3 ) > Momentum( Bar - 1, #Close, 3 )) then
If ( Momentum( Bar, #Close, 3 ) > Momentum( Bar - 2, #Close, 3 )) then
If ( Momentum( Bar, #Close, 3 ) > Momentum( Bar - 3, #Close, 3 )) then
BuyAtMarket( Bar + 1, '');
end;
Additional, I wanna close all position at 3:00 pm.
Kind Regards
|