Highly Adaptable Pivot Strategy with MA CrossPosition Filter

Strategies are published here.

Moderator: admin

Highly Adaptable Pivot Strategy with MA CrossPosition Filter

Postby Apprentice » Fri Dec 30, 2016 6:08 am

EURUSD m5 (12-30-2016 1119).png



Position Filter
Go Long if Price > MA
GoShort if Price < MA
Cross Filter
Trade on Price / MA cross
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

Postby scandisk » Mon Mar 27, 2017 12:17 pm

Hi Apprentice

I am using this strategy on my demo account and the trades are not being triggered for some weird reason?

I have set the strategies to allow trading and they are all triggered to trade? Is there something else I need to do? I have been running this on my computer for the last few days nothing gets triggered?

Just a question if I run my phone app fxcm same account that my strategies are running will it trigger my trades? Does fxcm offer a server for strategies so I don't need to keep my computer running?

Thanks ;)

Pivot.PNG
scandisk
 
Posts: 89
Joined: Thu Jul 25, 2013 4:51 pm

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

Postby scandisk » Thu Apr 06, 2017 11:34 pm

Hi Apprentice

Just wondering when u could take a look at this for me? It's not triggering or opening any trades?

Thanks
scandisk
 
Posts: 89
Joined: Thu Jul 25, 2013 4:51 pm

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

Postby scandisk » Fri Apr 28, 2017 8:46 pm

Still no fix? How long does it take??
scandisk
 
Posts: 89
Joined: Thu Jul 25, 2013 4:51 pm

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

Postby MC. Trend Trader » Sun Sep 30, 2018 4:32 pm

Can you fix this strategy.
Strategy don`t open any position
MC. Trend Trader
FXCodeBase: Initiate
 
Posts: 107
Joined: Sun Jul 05, 2015 12:36 am

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

Postby Apprentice » Wed Oct 10, 2018 1:05 pm

Can you share the parameters used in your testing?
Work in a back tester mode.
Make sure Trade Action is defined for some of the lines.
If Action is NOT defined, no trade will be executed.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

Postby jonath1028 » Sat Nov 03, 2018 9:39 pm

Can you explain how work "ref" from line 369 to 415?

I need this part of your code for my own strategy, but I don't understand how it works because "ref" is never defined and it use only on this part of your code

By the way it's a really nice code !
jonath1028
 
Posts: 5
Joined: Fri Oct 26, 2018 7:44 pm

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

Postby Apprentice » Mon Nov 05, 2018 6:41 am

PivotSource = ExtSubscribe(1, nil, instance.parameters.PivotTF, instance.parameters.Type == "Bid", "bar");

CalcLevels(PivotSource, period);

function CalcLevels(ref, period)
end


ref is nothing else then PivotSource, bar source data.
ref is PivotSource/source data passed to Calc Levels function.
CalcLevels function will calculate your pivot levels.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

Postby yolerap » Tue Aug 20, 2019 2:35 am

Hi Apprentice :)

Could you please add an option in the strategy "Highly Adaptable Pivot Strategy with MA CrossPosition Filter.lua" please.

It could be better if you add :

If the price cross over the pivot -> Buy
If the price cross under the pivot -> Sell

For the moment, we just have the choice Buy or Sell if the price cross the pivot but it's not intuitive :?

Thank you very much for your work !
yolerap
FXCodeBase: Initiate
 
Posts: 103
Joined: Sat Aug 17, 2019 9:44 pm

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

Postby Apprentice » Tue Aug 20, 2019 6:48 am

Your request is added to the development list under Id Number 4859
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 14 guests