I'm trying to find a way to convert TS strategy to NT functions for automatic trading so I am wondering if the following code for breakeven stop is correct or maybe anyone could suggest a better way to do this?
if NTConnected(1) then begin
if NTMarketPosition("") = -1 then begin
if BeNT_sell = entryprice - (BreakEven/PointValue/PriceScale) then begin
NTSlossShort = NTBuyStop("",1,entryprice);
end;
end;
end;
some explanation:
the scripts is executing usual TS strategy and in addition to that it also sends NT orders (I'd like to see what's happening on the chart).
So essentially entryprice is defined with the TS strategy and then used for NT.
entryprice - (BreakEven/PointValue/PriceScale) means for example 0.8728-0.0030 if breakeven point is 30 pips
Comment