Having trouble getting historical trade data
Created at 28 Mar 2018, 01:12

Having trouble getting historical trade data
28 Mar 2018, 01:12
I'm building an automated CBOT and I need a way to find out what the last buy and sell trade stats are when the cbot is activated.
I cant seem to find any examples online of how to do this. I just need to know things like was it a profitable trade, how many pips etc.. The last buy and sell.
Unfortunately I'm not the best C# coder but I do program in other languages so I learn easily from examples. Does anyone know how to do this?
PanagiotisCharalampous
28 Mar 2018, 09:52
Hi andrepasuf,
You can access the last deal using the followng code
Let me know if this helps you.
Best Regards,
Panagiotis
@PanagiotisCharalampous