Elite indicators :) - page 246

ismael360
748
ismael360  

Alfully quiet today...........

Jeff
89
Jeff  

Bb macd ssa

Mladen:

Have you worked on a BB MACD with SSA indicator that doesn't repant yet?

Mladen Rakic
151208
Mladen Rakic  

I am sorry, but the nature of the SSA prevents it

SSA must recalculate last Lag bars (it is it's mathematical formula) so I am afraid that it is impossible to make a different SSA

regards

Mladen

thor68:
Mladen: Have you worked on a BB MACD with SSA indicator that doesn't repant yet?
traderduke
531
traderduke  

mladen,

I got my KeltnerChannel EA working but not as well as inTS. I can't seem to get the

TS - Logic

{--Long--}

if CurrentBar > 1 and Price crosses over UpperBand then

begin

SetUp = true ;

CrossingHigh = High ;

end

else if Setup and ( Price = CrossingHigh + 1 point ) then

Setup = false ;

if Setup then

Buy ( "KltChLE" ) next bar at CrossingHigh + 1 point stop ;

into MT4 logic. I've tried several way as you can see from the earlier post, but at least now it works . I just need a little more MT4 logic.

Working MT4 Logic

if(Close [0] > upper)

&& TimeCondition()) return(true); return(false);

Any help or referral would be appreciated.

Ray

traderduke:
mladen

Could you help me translate TS code into MT4 code?

1. I have syntex errors I can't seem to get the "{" correct.

2. How do you translate the TS "Buy ( "KltChLE" ) next bar at CrossingHigh + 1 point stop " into a MT4 "Ordersend"?

If I'm out of line in this forum could you direct me for some help?

Thank You

Ray

My MT4 kc code;

bool BuySignal()

{

double upper=iCustom(NULL, 0,"RK-KeltnerChannel-atr",KCperiod,KCatr,0,ShiftKC+0);

double middle=iCustom(NULL, 0,"RK-KeltnerChannel-atr",KCperiod,KCatr,1,ShiftKC+0);

double lower=iCustom(NULL, 0,"RK-KeltnerChannel-atr",KCperiod,KCatr,2,ShiftKC+0);

if ( Close [1] upper) Setup == True && CrossingHigh == High;

else

if Setup && (Close [0] = CrossingHigh +1 Point) Setup == False;

if Setup

&& TimeCondition()) return(true); return(false);

} [/CODE]

Tradestation Keltner Code;

[CODE]Avg = AverageFC( Price, LengthKC ) ;

Shift = NumATRs * AvgTrueRange( LengthKC ) ;

UpperBand = Avg + Shift ;

LowerBand = Avg - Shift ;

{--Long--}

if CurrentBar > 1 and Price crosses over UpperBand then

{ CB > 1 check used to avoid spurious cross confirmation at CB = 1 }

begin

SetUp = true ;

CrossingHigh = High ;

end

else if Setup and ( Price = CrossingHigh + 1 point ) then

Setup = false ;

{ the High >= condition being true indicates that a buy must already have been

triggered at this bar so this setup has been used up and needs to be negated;

an example of a persisitent setup with an indefinite stop/limit trigger - setup

has to be negated after entry confirmed; also see Pivot Reversal LE/SE and

PercentR LE/SE }

if Setup then

Buy ( "KltChLE" ) next bar at CrossingHigh + 1 point stop ;

ismael360
748
ismael360  

SSA Multi Color

Mladen,

Is it possible to make SSA Of Price Indi to be able to change color. One color when with is going up and a different color when it changes direction going down? (and if possible an alert when it changes color or direction)

Files:
Mladen Rakic
151208
Mladen Rakic  

ismael

Here it is There is one difference in the way alerts are treated in this on : as you know SSA recalculates and it can change the last Lag bars. Alerts are, because of that, working in the following manner : if there is a change in color (slope) in the last Lag bars (+1 if you choose not to alert on current bar) and/or the time of that change does not agree with the previous state than you get an alert. So, this indicator will alert in 2 cases : when the color (slope of the line) is changed and/or when the time of that color-slope change changes as a result of SSA recalculating values

regards

Mladen

ismael360:
Mladen, Is it possible to make SSA Of Price Indi to be able to change color. One color when with is going up and a different color when it changes direction going down? (and if possible an alert when it changes color or direction)
Files:
dada455
14
dada455  

SSA Multi Color

Hi Mladen.

could you make this indicator change color (preferably draw an arrow) and alert only when the end of current bar agrees with cnange in slope in previous bar?

In this way avoiding repainting and making an alert a solid one.

thanks in advance.

Dada.

ismael360
748
ismael360  

Thank you Mladen. It looks great on the 4hr chart. I was wondering if the indicator would change color (preferably draw an arrow) and alert only when the end of current bar agrees with change in slope in previous bar, like dada45 suggested, would this help me in avoiding jumping in on a false signal and maybe making the alert more of a solid one?

In other words, maybe dada45's suggesting is a good one.

Mladen Rakic
151208
Mladen Rakic  

In order to clarify : SSA can (and will, in cases of sudden price changes) change last Lagbars (by default Lag is set to 25, so, if default parameters are used, last 25 bars can be changed)

Because of this property of SSA its usage in "mechanical systems" is not recommended (mechanical in a sense that it could be used as a signal)

It can be, and is recommended by many, to be used in manual trading as an estimate. A good thread about it is here : https://www.mql5.com/en/forum/179608 (I would like to repeat again that Centered TMA is very, very similar in values to SSA even though the mathematical model is completely different, so almost everything on that thread that is said about centered TMA can be applied to SSA too - on the example picture compared centered TMA (red) and SSA)

Files:
ismael360
748
ismael360  

I see, thank you Mladen, for all of your hard work.