Dear Friends,
I will be obliged to get some help with AFL code. MY AFL coding experience is basic and I am in the learning process.
I am trying to have multiple timeframe ribbon with Green, Red or Grey Color
The ribbon will have 4 stacks. Each Dash is corresponding to one candle
15MIN_RSI14 ----------------------------
15MIN_RSI23 ----------------------------
1Hours - - - - - - - - - - - - - - - -
Daily ------------------------
My Logic is as follows:
Daily Timeframe And 1hour timeframe
RSI(23) > 70 ( ribbon RED)
RSI(23) < 30 ( ribbon RED)
Else ribbon color GREEN
For 15 Minute timeframe
RSI (14) >50 (ribbon GREEN)
RSI (14) <50 (ribbon RED)
RSI(23)>70 (ribbon YELLOW)
RSI(23)>60 BUT RSI(23)<70 ( ribbon BLUE)
RSI(23)<40 BUT RSI(23)>30 ( ribbon BLUE)
RSI(23)<30 (ribbon YELLOW)
Else Ribbon color is GREY
Base timeframe will be 15 Minutes
I am not able to code this ribbon part. I tried to search in Traderji but cannot get this type of code where ribbon color is dependent on multiple conditions.
Can anyone help in getting the code for the ribbon? If you can guide me to the appropriate code snippet also , that will be of great help,
I am attaching the code that I have written till now:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
_SECTION_BEGIN("Daily");
TimeFrameSet(inDaily);
AD = RSI(23)>70;
BD = RSI(23)<30;
CD = RSI(23)<70 AND RSI(23)>30;
TimeFrameRestore();
_SECTION_END();
_SECTION_BEGIN("Hourly");
TimeFrameSet( inHourly); // switch to Hourly frame);
AH = RSI(23)>70;
BH = RSI(23)<30;
CH = RSI(23)<70 AND RSI(23)>30;
TimeFrameRestore();
_SECTION_END();
_SECTION_BEGIN("15Minute");
//TimeFrameSet( in15Minute ); // switch to 15 minute frame);
A14MU = RSI(14)>50;
A14MD = RSI(14)<50;
A23MU = RSI(23)> 60 AND RSI(23) <70;
A23MD = RSI(23)> 30 AND RSI(23) <40;
A23N = RSI(23)> 39 AND RSI(23) <59
//TimeFrameRestore();
_SECTION_END();
I will be obliged to get some help with AFL code. MY AFL coding experience is basic and I am in the learning process.
I am trying to have multiple timeframe ribbon with Green, Red or Grey Color
The ribbon will have 4 stacks. Each Dash is corresponding to one candle
15MIN_RSI14 ----------------------------
15MIN_RSI23 ----------------------------
1Hours - - - - - - - - - - - - - - - -
Daily ------------------------
My Logic is as follows:
Daily Timeframe And 1hour timeframe
RSI(23) > 70 ( ribbon RED)
RSI(23) < 30 ( ribbon RED)
Else ribbon color GREEN
For 15 Minute timeframe
RSI (14) >50 (ribbon GREEN)
RSI (14) <50 (ribbon RED)
RSI(23)>70 (ribbon YELLOW)
RSI(23)>60 BUT RSI(23)<70 ( ribbon BLUE)
RSI(23)<40 BUT RSI(23)>30 ( ribbon BLUE)
RSI(23)<30 (ribbon YELLOW)
Else Ribbon color is GREY
Base timeframe will be 15 Minutes
I am not able to code this ribbon part. I tried to search in Traderji but cannot get this type of code where ribbon color is dependent on multiple conditions.
Can anyone help in getting the code for the ribbon? If you can guide me to the appropriate code snippet also , that will be of great help,
I am attaching the code that I have written till now:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
_SECTION_BEGIN("Daily");
TimeFrameSet(inDaily);
AD = RSI(23)>70;
BD = RSI(23)<30;
CD = RSI(23)<70 AND RSI(23)>30;
TimeFrameRestore();
_SECTION_END();
_SECTION_BEGIN("Hourly");
TimeFrameSet( inHourly); // switch to Hourly frame);
AH = RSI(23)>70;
BH = RSI(23)<30;
CH = RSI(23)<70 AND RSI(23)>30;
TimeFrameRestore();
_SECTION_END();
_SECTION_BEGIN("15Minute");
//TimeFrameSet( in15Minute ); // switch to 15 minute frame);
A14MU = RSI(14)>50;
A14MD = RSI(14)<50;
A23MU = RSI(23)> 60 AND RSI(23) <70;
A23MD = RSI(23)> 30 AND RSI(23) <40;
A23N = RSI(23)> 39 AND RSI(23) <59
//TimeFrameRestore();
_SECTION_END();