Developing a strategy as an indicator

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Developing a strategy as an indicator

Postby Daveatt » Tue Dec 04, 2018 6:36 am

Hi Apprentice

I have been advised to convert my strategies into indicator instead. Seems running a strategy via an indicator would enhance the performance, reduce trades not taken/slippage

The logic behind this is if a strategy loads indicators in different timeframe, we'll have to call the ExtSubscribe function which will load a ton of data. However, an indicator has already access to all those data and the function getHistory/getSyncHistory is lighter

Would it makes sense to convert a strategy into an indicator then ? Do you see any reason for not doing so ?

Thanks for your answer
Best
Daveatt
 
Posts: 62
Joined: Mon Jan 30, 2017 10:00 am

Re: Developing a strategy as an indicator

Postby Apprentice » Thu Dec 06, 2018 9:21 am

We can write it as indicator or strategy.
You can not NOT an indicator in the backtester.
If indicator data retrieval from the strategy is the problem, we can use indicator.
Can you give me your trading logic?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Developing a strategy as an indicator

Postby Daveatt » Fri Dec 07, 2018 4:12 am

Hi Apprentice

I'd like to include about 10 MVA MTF in my strategy. Then I'll have to instance each of them using ExtSubscribe
The code is already done - The idea is that I won't enter a trade if we're near a big daily/weekly/monthly MVA
I was just wondering if ExtSubscribe is somehow heavier than getsyncHistory ? (i.e. meaning if it could triggers a few unexpected slippages)

Thanks for your input
Daveatt
Daveatt
 
Posts: 62
Joined: Mon Jan 30, 2017 10:00 am

Re: Developing a strategy as an indicator

Postby Apprentice » Fri Dec 07, 2018 6:03 am

As for slippage, as I understand, both methods are identical.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Developing a strategy as an indicator

Postby Daveatt » Fri Dec 07, 2018 6:31 am

Good to know

Much appreciated
Thanks
Daveatt
 
Posts: 62
Joined: Mon Jan 30, 2017 10:00 am


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 22 guests