Total Pips
Total Pips
02 Apr 2020, 12:44
Hi
I want to write a code in my BOT that shows me all the Pips in a row in the log when the test is over
I've written the code below but it shows for each separate position
foreach (var HI in History.FindAll(label))
{
Print("PIPS ", HI.Pips);
}
Replies
dordkash@gmail.com
02 Apr 2020, 21:02
( Updated at: 21 Dec 2023, 09:21 )
RE:
PanagiotisCharalampous said:
Hi there,
You can try the below
var pips = History.Where(x => x.Label == label).Sum(p => p.Pips);
Best Regards,
Panagiotis
I wrote this
But that's how it works
I posted a photo
@dordkash@gmail.com
PanagiotisCharalampous
03 Apr 2020, 08:20
Hi there,
Can you post your complete cBot? Where do you print the values? In OnBar()? You should do it in OnStop().
Best Regards,
Panagiotis
@PanagiotisCharalampous
dordkash@gmail.com
03 Apr 2020, 12:40
RE:
PanagiotisCharalampous said:
Hi there,
Can you post your complete cBot? Where do you print the values? In OnBar()? You should do it in OnStop().
Best Regards,
Panagiotis
thank you so much
@dordkash@gmail.com
PanagiotisCharalampous
02 Apr 2020, 14:26
Hi there,
You can try the below
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous