get Symbol.Bid from another symbol
Created at 12 Sep 2019, 12:45
get Symbol.Bid from another symbol
12 Sep 2019, 12:45
i have a bot that makes changes to multiple positions, to calculate values i would need to get the Ask/Bid Price from the symbol the position is actually on ..
any idea how to do this?
foreach (var pos in Positions) { if (pos.TradeType == TradeType.Buy) { TslP = Symbol.Bid - (Symbol.PipSize * Tsl); } else { TslP = Symbol.Ask + (Symbol.PipSize * Tsl); } ModifyPositionAsync(pos, TslP, 0, true); }
this does work but only if the bot runns on the same symbol
PanagiotisCharalampous
12 Sep 2019, 12:56
Hi Mario,
Here is an example
Best Regards,
Panagiotis
@PanagiotisCharalampous