PureBytes Links
Trading Reference Links
|
Hello
I would like to translate a TD from
Wealth-Lab.
I would like to know if I need to use VBScript or
Jscript for that.
Here is the WL code:
PlotSeries( BBandLower( #Close, 10, 1.5 ), 0, 022, 0 );
PlotSeries( BBandUpper( #Close, 10, 1.5 ), 0, 022, 0 );
LowerBand := BBandLower( #low, 10, 1.5 );
UpperBand := BBandUpper( #High, 10, 1.5 );
PlotSeries( LowerBand, 0, 863, 0 );
PlotSeries( UpperBand, 0, 863, 0 );
InstallProfitTarget(5);
for Bar := 15 to BarCount()- 1 do begin
applyAutoStops( bar );
limitPrice := ( BBandLower( Bar, #low, 10, 1.5 ) * 0.95 );
if adx(bar,14) >= 22 then
BuyAtLimit( Bar + 1, 5000, limitPrice );
for P := 0 to PositionCount - 1 do begin
if PositionActive( P ) then begin
if bar + 1 - positionBuyBar( p ) >= 2 then begin
SellAtMarket( Bar + 1, P, 'DaysExpired' );
end;
end;
end;
end;
Thanks
Bernard Bourée<A
href="">bernard@xxxx
|