I am a newbie in NT and need to convert my Strategy Trader code to NT code. Will you please show the proper syntax for displacing the chart position in this code. I get errors but not sure what to correct. I need the values to be displayed on the chart (left top) like these:
Position: Long
Spread: 0.00023
Hi: 0.12345 Lo: 0.12245
Thank you,
traderjh
ST code:
DrwText.Create(new DrwCoordinate(Environment.DisplayedLeft, (Environment.DisplayedTop - 5) ),"Position: " + StrategyInfo.MarketPosition); DrwText.Create(new DrwCoordinate(Environment.DisplayedLeft, (Environment.DisplayedTop - 6) ),"Spread: " + Math.Round(showSpread,digitSize).ToString()); DrwText.Create(new DrwCoordinate(Environment.DisplayedLeft, (Environment.DisplayedTop - 7) ),"High: "+Math.Round(Bars.High[0],5).ToString() +" Low: "+ Math.Round(Bars.Low[0],5).ToString());
DrawTextFixed("show" + CurrentBar, ("Position: " + Math.Round(GetAtmStrategyMarketPosition(),5).ToString()), (TextPosition.TopLeft + 0)); DrawTextFixed("show" + CurrentBar, ("Spread: " + Math.Round(mySpread,5).ToString()), (TextPosition.TopLeft + 1)); DrawTextFixed("show" + CurrentBar, ("Hi: " + Math.Round(High[0],5).ToString()) + "Hi: " + Math.Round(Low[0],5).ToString()) , (TextPosition.TopLeft + 2));
Comment