Page 1 of 2

Highly Adaptable Pivot Strategy with MA CrossPosition Filter

PostPosted: Fri Dec 30, 2016 6:08 am
by Apprentice
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

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

PostPosted: Mon Mar 27, 2017 12:17 pm
by scandisk
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

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

PostPosted: Thu Apr 06, 2017 11:34 pm
by scandisk
Hi Apprentice

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

Thanks

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

PostPosted: Fri Apr 28, 2017 8:46 pm
by scandisk
Still no fix? How long does it take??

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

PostPosted: Sun Sep 30, 2018 4:32 pm
by MC. Trend Trader
Can you fix this strategy.
Strategy don`t open any position

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

PostPosted: Wed Oct 10, 2018 1:05 pm
by Apprentice
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.

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

PostPosted: Sat Nov 03, 2018 9:39 pm
by jonath1028
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 !

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

PostPosted: Mon Nov 05, 2018 6:41 am
by Apprentice
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.

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

PostPosted: Tue Aug 20, 2019 2:35 am
by yolerap
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 !

Re: Highly Adaptable Pivot Strategy with MA CrossPosition Fi

PostPosted: Tue Aug 20, 2019 6:48 am
by Apprentice
Your request is added to the development list under Id Number 4859