Non-Lag Moving Average strategy

Strategies are published here.

Moderator: admin

Re: Non-Lag Moving Average strategy

Postby RJH501 » Sun Aug 07, 2011 12:20 pm

Hi Alexander,

I am getting a buy and/or sell signal on every candle.

What would cause this to happen?

Thanks,

Richard
Attachments
NL2.PNG
RJH501
 
Posts: 84
Joined: Mon May 30, 2011 8:38 pm

Re: Non-Lag Moving Average strategy

Postby arieldutchess » Mon Jan 14, 2013 10:47 pm

I've been testing this indicator as well, has anyone requested an EA to be develop? thanks.
arieldutchess
 
Posts: 1
Joined: Sun Dec 30, 2012 2:49 am

Re: Non-Lag Moving Average strategy

Postby Apprentice » Tue Jan 15, 2013 7:24 am

RJH501 Try my updated version, See topmost post.
I also use different updated indicator.

Arieldutchess
Can you describe your strategy.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19434
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Non-Lag Moving Average strategy

Postby rstar250 » Fri Dec 20, 2013 12:10 pm

I've been working with this for a week or so. Haven't been able to understand how it is working. Set up the non lag indicator and the strategy with the same settings but the entry and exits don't match at all. Anyone have any input that might help?
rstar250
 
Posts: 9
Joined: Fri Nov 30, 2012 7:58 pm

Re: Non-Lag Moving Average strategy

Postby Apprentice » Sat Dec 21, 2013 7:44 am

Trade will be generated if we have a change in the slope of Non-Lag Moving Average.

The positive slope
Open Long Trade

Negative Slope
Open Short Trade
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19434
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Non-Lag Moving Average strategy

Postby rstar250 » Mon Dec 23, 2013 11:31 pm

Thanks Apprentice.
rstar250
 
Posts: 9
Joined: Fri Nov 30, 2012 7:58 pm

Re: Non-Lag Moving Average strategy

Postby Sedamenta » Thu Apr 09, 2015 10:14 pm

Apprentice wrote:Trade will be generated if we have a change in the slope of Non-Lag Moving Average.

The positive slope
Open Long Trade

Negative Slope
Open Short Trade


I was having a hard time getting the strategy to execute trades when the indicator would change trends. so when you say the change in slope of the non-lag moving average do you mean it should execute trades at the close of the tick I circled below if the strategy was set with the data source being form the close of each candle stick?

701.png



If not could you make a strategy that places an order when it changes color on the indicator as above?

I was also wondering about the filter.
It was said that
The parameter is set in pips. A zero value means there is no filtering.


so if the filter is set on 1 would that be a 1 pip filter?

sorry about all the questions I am just trying to figure out how it works.
Sedamenta
 
Posts: 3
Joined: Tue Mar 31, 2015 9:29 pm

Re: Non-Lag Moving Average strategy

Postby Apprentice » Sun Apr 12, 2015 10:21 am

As it is Strategy is End of Turn Strategy.
Trade is delayed until end of turn.
Filter parameter is Non-Lag MA Indicator parameter.
Filter parameter will determine the minimum required changes need to change in MA.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19434
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Non-Lag Moving Average strategy

Postby Sedamenta » Wed Jun 10, 2015 9:27 pm

I wanted to change this :
Code: Select all
 if   Indicator[1].DATA[period]> Indicator[1].DATA[period-1]
      and   Indicator[1].DATA[period-2] > Indicator[1].DATA[period-1] 
      then
       
      
            if Direction then
                BUY();
            else
                SELL();
            end
         
      elseif   Indicator[1].DATA[period] < Indicator[1].DATA[period-1]
      and   Indicator[1].DATA[period-2] < Indicator[1].DATA[period-1] 
       then
            if Direction then
                SELL();
            else
                BUY();


To this:
I want this to take in account for the the ColorBarBack and not the actual level of the MA but the color that is printed on the MA


Code: Select all
if Indicator[1].DATA[period] prints GREEN and Indicator[1].DATA[period-1] prints GREEN
then
if Color then
BUY();

if Indicator[1].DATA[period] prints RED and Indicator[1].DATA[period-1] prints RED
then
if Color then
SELL();
Sedamenta
 
Posts: 3
Joined: Tue Mar 31, 2015 9:29 pm

Re: Non-Lag Moving Average strategy

Postby Apprentice » Fri Jun 12, 2015 3:15 am

You mean, Take a trade on color change?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19434
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 10 guests