the most complicated afl ever

#1
Hey All,
Candle stick, bars
1) Higher high bar/candle = green, lower low = red
2) If price is above a 5,15 and 30 moving average, then the bar should be green.
3) If price is below a 5,15 and 30 moving average, then the bar should be red .

Now here is the tricky part,

If the 5 MA is below the 15 MA but above the 30 MA or
if the 5 MA is above the 15 MA but below the 30 MA, the bars should be yellow.

Thanks in advance,

Max:thumb:
 
Last edited:
#2
Originally Posted by johnnypareek
Well,

What color if high is higher but price is below a 5,15 and 30 moving average. shud it be green??

Yes John, if possible a green with no fill or a darker shade of green.
This is a simple but new powerful method of price analysis on dual time frame trading on any time frame in any mktg. Ill explain all the details of color distinction & the methodology used with screen shots once I have the code so that it is easy to understand.
 
#3
FYI for those interested

_SECTION_BEGIN("Price BetterColor ");
Period = Param("Period", 20, 2, 300, 1, 10 );
LowColor = colorYellow;
ClimaxColor = colorRed;
ChurnColor = colorGreen;
ClimaxChurnColor=colorBlue;
LowChurnColor= colorWhite;
Value1 = C;
Value2 = C*(H-L);
Value3 = C/(H-L);
BarColor = IIf( (Value1 == LLV(Value1,Period)), LowColor,
IIf( (Value2 == HHV(Value2,Period)), ClimaxColor,
IIf( (Value3 == HHV(Value3,Period)), ChurnColor,
IIf( ((Value2 == HHV(Value2,Period) AND (Value3 == HHV(Value3,Period)))), ClimaxChurnColor,
IIf( (Value3 == LLV(Value3,Period)), LowChurnColor, colorBlueGrey)))));
_SECTION_END();

_SECTION_BEGIN("Price");
Plot(C, "", BarColor, styleCandle);
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
_SECTION_END();
 

johnnypareek

Well-Known Member
#4
Originally Posted by johnnypareek
Well,

What color if high is higher but price is below a 5,15 and 30 moving average. shud it be green??

Yes John, if possible a green with no fill or a darker shade of green.
This is a simple but new powerful method of price analysis on dual time frame trading on any time frame in any mktg. Ill explain all the details of color distinction & the methodology used with screen shots once I have the code so that it is easy to understand.


That is the problem. Give full details at once. What happens that one will make this then u will request to one more rule , will make. Then again you will give one more rule. That sucks.

Give clear full information so Saturday Sunday can be use to try it.

johnny
 
#5
That is the problem. Give full details at once. What happens that one will make this then u will request to one more rule , will make. Then again you will give one more rule. That sucks.

Give clear full information so Saturday Sunday can be use to try it.

johnny
OK John,
Sorry for not giving the details, since the concept itself is new and Im trying to understand the exact workings of it myself

Here goes

Price can be viewed as candle stick or bars
1) Higher high bar/candle = bright green,
2) lower low = red
3) If price is above a 5,15 and 30 moving average, then the bar should be bright green.
4) If price is below a 5,15 and 30 moving average, then the bar should be red .

Now here is the tricky part,

If the 5 MA is below the 15 MA but above the 30 MA but makes higher highs candle should be yellow out line with green fill
if the 5 MA is above the 15 MA but below the 30 MA, the bars should be yellow, but if price is making lower lows then candle should red with yellow outline.
 
#6
This is called spotlight price analysis and a relatively new concept globally , where price as always is a leading indicator and gives a trader a basis immeadeatly b viewing a chart off hand.
 
#8
Waiting for the total outcome....
Hi Maximillan...When to buy and when to sell using this analysis?
Hi Bewinner,
The obvious answer would be when all MAs are in +ve & -ve, but as we all know MAs are known to give false signals repeatedly, that's where the color coding comes into play & that's where the strength of this analysis lies.
However without practically trying it out its virtually impossible for me to really speak on entries stops & exits.
I have only vaguely understood the concept of this method, hopefully as I begin back testing I will able to come up with what the Europeans:clap: claim is the secret holy grail.
 

sr114

Well-Known Member
#9
This is called spotlight price analysis and a relatively new concept globally , where price as always is a leading indicator and gives a trader a basis immeadeatly b viewing a chart off hand.
1st draft of ur afl coding - screen shot



2nd screen shot


3rd screenshot



ps. -
here a= ma5,(green line) b=ma15 (skyblue line) and d=ma30 (red line)

green vertical line = a<b and a>d
red vertical line = a>b and a<d

rgds
subroto
 

Bewinner

Well-Known Member
#10
Aila...

SR have u done the complete coding as per the requirement...Thats great Sir...U, Johnny and Kelvinhand going hand to hand...really...
 

Similar threads