Topics
Replies
Willie_Dladla
29 May 2022, 14:37
RE:
firemyst said:
Not sure if it can be done, but to access a chart object in a bot that's drawn from a bot, you would do something like this example if you're looking for a horizontal line:
ChartHorizontalLine obj = (ChartHorizontalLine)Chart.FindObject("the name you gave the line when you drew it");
Hello firemyst,
Thanks for the response, So what would you suggest? Will it be possible to transfer the indicator's code inside a bot?
@Willie_Dladla
Willie_Dladla
15 May 2020, 09:46
RE:
PanagiotisCharalampous said:
Hi willyvusi04,
You can try something like the below
if (Positions.Sum(x => x.NetProfit) > 0) { foreach (var position in Positions) position.Close(); }
Best Regards,
Panagiotis
Thank you so much
@Willie_Dladla
Willie_Dladla
23 Nov 2022, 21:19
RE:
PanagiotisChar said:
Thank you PanagiotisChar I appreciated it.
@Willie_Dladla