drawing marks on strategy?

Section for discussions related to indicators, use of indicators, and building of trading stategies using indicators.

Moderator: admin

drawing marks on strategy?

Postby csshine » Mon Jan 21, 2019 12:26 pm

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
csshine
 
Posts: 12
Joined: Wed Nov 28, 2018 6:16 am

Re: drawing marks on strategy?

Postby csshine » Tue Jan 29, 2019 6:35 am

Is anyone could help on this question?

Best Regards
Chen
csshine
 
Posts: 12
Joined: Wed Nov 28, 2018 6:16 am

Re: drawing marks on strategy?

Postby fxcodebase_007 » Sat Mar 02, 2019 12:41 pm

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
fxcodebase_007
 
Posts: 5
Joined: Wed Jun 06, 2018 4:22 am

Re: drawing marks on strategy?

Postby fxcodebase_007 » Mon Mar 04, 2019 6:23 pm

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.
Attachments
Example.JPG
How it looks
fxcodebase_007
 
Posts: 5
Joined: Wed Jun 06, 2018 4:22 am


Return to Discussions

Who is online

Users browsing this forum: No registered users and 2 guests