Topics
Replies
humza.jelani
21 Feb 2023, 09:36
RE: RE: I do not know how to code I'm just sorting out the core logic units of the cbot. In the given example how would the SymbolName be defined?
humza.jelani said:
PanagiotisChar said:
Hi there,
Here is an example
var netProfit = Positions.Where(p => p.SymbolName == SymbolName).Sum(p => p.NetProfit);
Need help? Join us on Telegram
Need premium support? Trade with us
Including this example what would the code look like if the intention was to reset the net profit for the specific symbol on a daily basis?
Or is it done automatically whenever a new trading session begins?
I'm asking for a useable sample code.
@humza.jelani
humza.jelani
21 Feb 2023, 09:33
RE:
PanagiotisChar said:
Hi there,
Here is an example
var netProfit = Positions.Where(p => p.SymbolName == SymbolName).Sum(p => p.NetProfit);
Need help? Join us on Telegram
Need premium support? Trade with us
Including this example what would the code look like if the intention was to reset the net profit for the specific symbol on a daily basis?
Or is it done automatically whenever a new trading session begins?
I'm asking for a useable sample code.
@humza.jelani
humza.jelani
15 Nov 2023, 10:17
The Problem
I am unable to reference sma values using bars ago function as possible using NinjaTrader 8.
Bars.ago made it really simple to reference indicator values certain bars ago - there is an indicator value attached to each bar on the chart in NT8.
Please advise.
@humza.jelani