AR
Getting results from last trade?
15 Dec 2018, 11:46
So, once my bot closes a position, I am trying to figure out how to get the results from the last trade (in pips)
maybe with
HistoricalTrade
? .... tho i am not sure the snytax..

Shares4UsDevelopment
17 Dec 2018, 10:57
Use the onclose eventhandler
protected override void OnStart() { Positions.Closed += sender => Orders.Events.PositionsOnClosed(sender, this); ''''''' }&&
public static void PositionsOnClosed(PositionClosedEventArgs Posit, Robot This) { Print( Posit.Reason); }@Shares4UsDevelopment