Page 1 of 1

drawing marks on strategy?

PostPosted: Mon Jan 21, 2019 12:26 pm
by csshine
Dear,
I have a question on drawing marks on chart of strategy.
I notice the demo on WIKI that indicator(signal) can draw marks on candle line using set() method of text_output_impl easily.
My question is :
1. Is there a solution to draw marks on candle line when propose strategy? And how to?
2. how to draw marks on indicator instance in the strategy?

Thanks in advance!
Chen

Re: drawing marks on strategy?

PostPosted: Tue Jan 29, 2019 6:35 am
by csshine
Is anyone could help on this question?

Best Regards
Chen

Re: drawing marks on strategy?

PostPosted: Sat Mar 02, 2019 12:41 pm
by fxcodebase_007
What do you want to draw on the candle using the strategy?
From my understanding indicators are used for visualising. So all drawings must be done on the indicator.

Strategies are for trade execution. So when a strategy is executed you can see the buy and sell candle and the price level where order was executed. If you use your strategy in strategy back tester, and execute the strategy backtesting from start to end date you can see those entries and exits on the strategy backtester's chart

Re: drawing marks on strategy?

PostPosted: Mon Mar 04, 2019 6:23 pm
by fxcodebase_007
Another way I could make things draw after execution of a strategy is by the following steps:

1. Make my Indicator draw the marks I want.
2. Run my strategy in Strategy backtester.
3. After the Strategy Backtester displays its results, apply the Indicator from step 1 on the Backtester chart.

Result: Now you can see the marks/drawings on the chart along with the result of your strategy.