Once I figure out how to get the TRO DYNAMIC SR working just like TS and eSignal, I'll have what I need.
I saw this Fractal version. But as you can see, RESISTANCE didn't move until AFTER the price ran up through it...LOL!
META TRADER 4 THREAD NOW ON KRESLIK.COM
Moderator: moderators
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15566
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3036
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
Hope this helps TRO
Code: Select all
//+------------------------------------------------------------------+
//| TRO_DYNAMICFIBSSR.mq4 |
//| |
//| Based on ideas from TheRumpledOne & daniil |
//| Any suggestions for improvements email dayraider@gmail.Com |
//|------------------------------------------------------------------+
#property copyright ""
#property link ""
#property indicator_chart_window
#property indicator_buffers 7
#property indicator_color1 Red
#property indicator_color2 Blue
#property indicator_color3 DarkSeaGreen
#property indicator_color4 Khaki
#property indicator_color5 Gray
#property indicator_color6 Khaki
#property indicator_color7 DarkSeaGreen
//---- input parameters
extern int max_bars=300;
extern bool bDrawFibs = false;
extern bool bResetOnNewDay = true;
extern int iPeriods=5;
extern double iLevel1=0.24;
extern double iLevel2=0.382;
extern double iLevel3=0.5;
extern double iLevel4=0.618;
extern double iLevel5=0.76;
//---- buffers
double DynR[];
double DynS[];
double fb1[];
double fb2[];
double fb3[];
double fb4[];
double fb5[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,161);
SetIndexBuffer(0,DynR);
SetIndexEmptyValue(0,0.0);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1,161);
SetIndexBuffer(1,DynS);
SetIndexEmptyValue(1,0.0);
SetIndexStyle(2,DRAW_ARROW);
SetIndexArrow(2,161);
SetIndexBuffer(2,fb1);
SetIndexEmptyValue(2,0.0);
SetIndexStyle(3,DRAW_ARROW);
SetIndexArrow(3,161);
SetIndexBuffer(3,fb2);
SetIndexEmptyValue(3,0.0);
SetIndexStyle(4,DRAW_ARROW);
SetIndexArrow(4,161);
SetIndexBuffer(4,fb3);
SetIndexEmptyValue(4,0.0);
SetIndexStyle(5,DRAW_ARROW);
SetIndexArrow(5,161);
SetIndexBuffer(5,fb4);
SetIndexEmptyValue(5,0.0);
SetIndexStyle(6,DRAW_ARROW);
SetIndexArrow(6,161);
SetIndexBuffer(6,fb5);
SetIndexEmptyValue(6,0.0);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
if(counted_bars < 0)
return(-1);
//----
int limit=Bars-counted_bars;
DynR[0] = Close[0];
DynS[0] = Close[0];
double nHH, nLL;
double range;
int processBars=MathMin(limit, max_bars);
for(int i=processBars;i>=0;i--){
if ((Period() < PERIOD_D1) && //if timeframe below day
(TimeDay(Time[i])!=TimeDay(Time[i+1])) && // new day
(bResetOnNewDay)) { // reset if different day
DynR[i] = High[i];
DynS[i]= Low[i];
} //end if
else
{
nHH = High[Highest(NULL,0,MODE_HIGH,iPeriods,i)];
nLL = Low[Lowest(NULL,0,MODE_LOW,iPeriods,i)];
DynR[i] = nHH;
DynS[i] = nLL;
if ((DynR[i] != High[i]) && (DynR[i] < DynR[i+1]) && ( DynR[i+1] != 0 ))
DynR[i] = DynR[i+1];
if (( DynS[i] != Low[i]) && (DynS[i] > DynS[i+1] ) && ( DynS[i+1] != 0 ))
DynS[i] = DynS[i+1];
}
if (bDrawFibs){ // draw fibs
range = DynR[i] - DynS[i];
fb1[i] = DynR[i] - range*iLevel1;
fb2[i] = DynR[i] - range*iLevel2;
fb3[i] = DynR[i] - range*iLevel3;
fb4[i] = DynR[i] - range*iLevel4;
fb5[i] = DynR[i] - range*iLevel5;
} //end if
} //end for
//----
return(0);
}
//+------------------------------------------------------------------+
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15566
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3036
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15566
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3036
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
After price moves X pips in one direction, it is usually time for a retrace. That's where Dynamic SR comes in handy. The "secret" is knowing the value for X for the currency you are trading.
If you go long within 2 pips of Dynamic Support, you'll see that you can make a profit as price returns to the 50% retrace level.
If you go long within 2 pips of Dynamic Support, you'll see that you can make a profit as price returns to the 50% retrace level.
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!
Please do NOT PM me with trading or coding questions, post them in a thread.
Please do NOT PM me with trading or coding questions, post them in a thread.
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15566
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3036
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
TRO DYNAMIC SR - MT4 Version- UPDATED 12/12/2007
I made a couple of minor changes.
SR plots Support and Resistance.
SRP plots the Fib Projects.
I made a couple of minor changes.
SR plots Support and Resistance.
SRP plots the Fib Projects.
- Attachments
-
- TRO_DynFibSR_P.zip
- (10.35 KiB) Downloaded 504 times
Last edited by TheRumpledOne on Fri Dec 21, 2007 1:55 am, edited 1 time in total.
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!
Please do NOT PM me with trading or coding questions, post them in a thread.
Please do NOT PM me with trading or coding questions, post them in a thread.
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15566
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3036
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
You MT4 traders just have to check out FerruFx:
http://www.forex-tsd.com/suggestions-tr ... cator.html
The indicator looks a lot like my SLOT MACHINE. Really great work!
http://www.forex-tsd.com/suggestions-tr ... cator.html
The indicator looks a lot like my SLOT MACHINE. Really great work!
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!
Please do NOT PM me with trading or coding questions, post them in a thread.
Please do NOT PM me with trading or coding questions, post them in a thread.
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15566
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3036
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
TRO_RANGE for MT4
- Attachments
-
- TRO_Range.zip
- (3.41 KiB) Downloaded 502 times
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!
Please do NOT PM me with trading or coding questions, post them in a thread.
Please do NOT PM me with trading or coding questions, post them in a thread.
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15566
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3036
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15566
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3036
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
More MT4 code.
- Attachments
-
- mt4_20071222pt.zip
- (210.64 KiB) Downloaded 460 times
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!
Please do NOT PM me with trading or coding questions, post them in a thread.
Please do NOT PM me with trading or coding questions, post them in a thread.
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.