The Murrey Math Trading System - page 65

 

Phenomenal!!! Thank you so much. It was the second one and adding

ObjectSet(buff_str, OBJPROP_WIDTH,2);

is what did the trick.

Is there a way to add baby Murrey Math lines to the program?

Regards,

Vracar

xard777:
you will see code similar to this...

for( i=0; i<OctLinesCnt; i++ ){

buff_str = "mml"+i;

if(ObjectFind(buff_str) == -1) {

ObjectCreate(buff_str, OBJ_HLINE, 0, BlockEnd, mml);

ObjectSet(buff_str, OBJPROP_STYLE, STYLE_SOLID);

ObjectSet(buff_str, OBJPROP_COLOR, mml_clr);

ObjectSet(buff_str, OBJPROP_RAY, false);

ObjectSet(buff_str, OBJPROP_WIDTH,1);

ObjectMove(buff_str, 0, BlockEnd , mml);

}

else {

ObjectMove(buff_str, 0, BlockEnd, mml);

Where it says OBJPROP_WIDTH,1) ....change No to 2, 3 or 4 for thickness & press the compile button.

if it is like this code...

for( i=0; i<OctLinesCnt; i++ ){

buff_str = "mml"+i;

if(ObjectFind(buff_str) == -1) {

ObjectCreate(buff_str, OBJ_HLINE, 0, Time[0], mml);

ObjectSet(buff_str, OBJPROP_STYLE, STYLE_SOLID);

ObjectSet(buff_str, OBJPROP_COLOR, mml_clr);

ObjectMove(buff_str, 0, Time[0], mml);

then you want to add the width line in blue & change the number to suit

Xard777
 

Simply add...

double bm222,bm224,bm226;

double bm112,bm114,bm116;

double bm02,bm04,bm06;

double bm12,bm14,bm16;

double bm22,bm24,bm26;

double bm32,bm34,bm36;

double bm42,bm44,bm46;

double bm52,bm54,bm56;

double bm62,bm64,bm66;

double bm72,bm74,bm76;

double bm82,bm84,bm86;

double bm92,bm94,bm96;

ObjectDelete("bm222_Line");

ObjectCreate("bm222_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm222);

ObjectSet("bm222_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm222_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm222_Line",OBJPROP_RAY, false);

ObjectSet("bm222_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm224_Line");

ObjectCreate("bm224_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm224);

ObjectSet("bm224_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm224_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm224_Line",OBJPROP_RAY,false);

ObjectSet("bm224_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm226_Line");

ObjectCreate("bm226_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm226);

ObjectSet("bm226_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm226_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm226_Line",OBJPROP_RAY,false);

ObjectSet("bm226_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm112_Line");

ObjectCreate("bm112_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm112);

ObjectSet("bm112_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm112_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm112_Line",OBJPROP_RAY,false);

ObjectSet("bm112_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm114_Line");

ObjectCreate("bm114_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm114);

ObjectSet("bm114_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm114_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm114_Line",OBJPROP_RAY,false);

ObjectSet("bm114_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm116_Line");

ObjectCreate("bm116_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm116);

ObjectSet("bm116_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm116_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm116_Line",OBJPROP_RAY,false);

ObjectSet("bm116_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm02_Line");

ObjectCreate("bm02_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm02);

ObjectSet("bm02_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm02_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm02_Line",OBJPROP_RAY,false);

ObjectSet("bm02_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm04_Line");

ObjectCreate("bm04_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm04);

ObjectSet("bm04_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm04_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm04_Line",OBJPROP_RAY,false);

ObjectSet("bm04_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm06_Line");

ObjectCreate("bm06_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm06);

ObjectSet("bm06_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm06_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm06_Line",OBJPROP_RAY,false);

ObjectSet("bm06_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm12_Line");

ObjectCreate("bm12_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm12);

ObjectSet("bm12_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm12_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm12_Line",OBJPROP_RAY,false);

ObjectSet("bm12_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm14_Line");

ObjectCreate("bm14_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm14);

ObjectSet("bm14_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm14_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm14_Line",OBJPROP_RAY,false);

ObjectSet("bm14_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm16_Line");

ObjectCreate("bm16_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm16);

ObjectSet("bm16_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm16_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm16_Line",OBJPROP_RAY,false);

ObjectSet("bm16_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm22_Line");

ObjectCreate("bm22_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm22);

ObjectSet("bm22_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm22_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm22_Line",OBJPROP_RAY,false);

ObjectSet("bm22_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm24_Line");

ObjectCreate("bm24_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm24);

ObjectSet("bm24_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm24_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm24_Line",OBJPROP_RAY,false);

ObjectSet("bm24_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm26_Line");

ObjectCreate("bm26_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm26);

ObjectSet("bm26_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm26_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm26_Line",OBJPROP_RAY,false);

ObjectSet("bm26_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm32_Line");

ObjectCreate("bm32_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm32);

ObjectSet("bm32_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm32_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm32_Line",OBJPROP_RAY,false);

ObjectSet("bm32_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm34_Line");

ObjectCreate("bm34_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm34);

ObjectSet("bm34_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm34_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm34_Line",OBJPROP_RAY,false);

ObjectSet("bm34_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm36_Line");

ObjectCreate("bm36_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm36);

ObjectSet("bm36_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm36_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm36_Line",OBJPROP_RAY,false);

ObjectSet("bm36_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm42_Line");

ObjectCreate("bm42_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm42);

ObjectSet("bm42_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm42_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm42_Line",OBJPROP_RAY,false);

ObjectSet("bm42_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm44_Line");

ObjectCreate("bm44_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm44);

ObjectSet("bm44_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm44_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm44_Line",OBJPROP_RAY,false);

ObjectSet("bm44_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm46_Line");

ObjectCreate("bm46_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm46);

ObjectSet("bm46_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm46_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm46_Line",OBJPROP_RAY,false);

ObjectSet("bm46_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm52_Line");

ObjectCreate("bm52_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm52);

ObjectSet("bm52_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm52_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm52_Line",OBJPROP_RAY,false);

ObjectSet("bm52_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm54_Line");

ObjectCreate("bm54_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm54);

ObjectSet("bm54_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm54_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm54_Line",OBJPROP_RAY,false);

ObjectSet("bm54_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm56_Line");

ObjectCreate("bm56_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm56);

ObjectSet("bm56_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm56_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm56_Line",OBJPROP_RAY,false);

ObjectSet("bm56_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm62_Line");

ObjectCreate("bm62_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm62);

ObjectSet("bm62_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm62_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm62_Line",OBJPROP_RAY,false);

ObjectSet("bm62_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm64_Line");

ObjectCreate("bm64_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm64);

ObjectSet("bm64_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm64_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm64_Line",OBJPROP_RAY,false);

ObjectSet("bm64_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm66_Line");

ObjectCreate("bm66_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm66);

ObjectSet("bm66_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm66_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm66_Line",OBJPROP_RAY,false);

ObjectSet("bm66_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm72_Line");

ObjectCreate("bm72_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm72);

ObjectSet("bm72_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm72_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm72_Line",OBJPROP_RAY,false);

ObjectSet("bm72_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm74_Line");

ObjectCreate("bm74_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm74);

ObjectSet("bm74_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm74_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm74_Line",OBJPROP_RAY,false);

ObjectSet("bm74_Line",OBJPROP_WIDTH,0);

 

continued from previos post...

ObjectDelete("bm76_Line");

ObjectCreate("bm76_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm76);

ObjectSet("bm76_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm76_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm76_Line",OBJPROP_RAY,false);

ObjectSet("bm76_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm82_Line");

ObjectCreate("bm82_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm82);

ObjectSet("bm82_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm82_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm82_Line",OBJPROP_RAY,false);

ObjectSet("bm82_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm84_Line");

ObjectCreate("bm84_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm84);

ObjectSet("bm84_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm84_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm84_Line",OBJPROP_RAY,false);

ObjectSet("bm84_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm86_Line");

ObjectCreate("bm86_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm86);

ObjectSet("bm86_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm86_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm86_Line",OBJPROP_RAY,false);

ObjectSet("bm86_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm92_Line");

ObjectCreate("bm92_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm92);

ObjectSet("bm92_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm92_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm92_Line",OBJPROP_RAY,false);

ObjectSet("bm92_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm94_Line");

ObjectCreate("bm94_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm94);

ObjectSet("bm94_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm94_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm94_Line",OBJPROP_RAY,false);

ObjectSet("bm94_Line",OBJPROP_WIDTH,0);

ObjectDelete("bm96_Line");

ObjectCreate("bm96_Line", OBJ_TRENDBYANGLE,0, BlockEnd,bm96);

ObjectSet("bm96_Line",OBJPROP_COLOR,DarkSlateGray);

ObjectSet("bm96_Line",OBJPROP_STYLE,STYLE_SOLID);

ObjectSet("bm96_Line",OBJPROP_RAY,false);

ObjectSet("bm96_Line",OBJPROP_WIDTH,0);

Xard777

 

Xard777,

First of all, thank you very much for the code. Unfortunately, I am not a programmer and incorporating the code below is more that I seem to be able to figure out how to do. Would it be too much trouble to ask you to include the code for baby MM lines into one of the .mq4 files?

Regards,

Vracar

Simply add...

double bm222,bm224,bm226;

double bm112,bm114,bm116;

double bm02,bm04,bm06;

double bm12,bm14,bm16;

double bm22,bm24,bm26;

double bm32,bm34,bm36;

double bm42,bm44,bm46;

double bm52,bm54,bm56;

double bm62,bm64,bm66;

double bm72,bm74,bm76;

double bm82,bm84,bm86;

double bm92,bm94,bm96;

 

Did that but still nothing... During performing in visual mode inscription pops up on the chart "upper level is not defined" or "lower level is not defined"...

ipixtlan:
I forgot to mention that during backtest you should,pause visual mode,put VG indicator on chart,resume backtest.
 

Great! Thank you very much again!!!

Vracar

xard777:
It is already in the timeframe file enclose... Xard777
 
maccavity:
Did that but still nothing... During performing in visual mode inscription pops up on the chart "upper level is not defined" or "lower level is not defined"...

It's work fine. But still confusing about entry level and TP SL point. It's only for reversal not following trend. But great job.

 

Digistoch, I see the code for overbought, oversold, bullish start, bearish start, it seem only decorative. It wont change the color.

How to detect overbough, oversold, bullish start, or bearish start from digistoch?

I can coding for you.

If overbough and oversold from RSI, and bearish bullish from bearish power and bullish power indikator i can immediately coding for you.

//--------EDIT----------//

I knew after i read the code carefully.

I's all there. And objecttext bullish, bearish, oversold and overbought for color legend only.

 
Files:
eur5.gif  23 kb
eur6.gif  23 kb
eur7.gif  23 kb
eur8.gif  22 kb
eur9.gif  22 kb
 

maccavity:
Hello!

How to make trading decisions based on Murrey levels?

.............................................................

So, again how should I determine the levels for buy and sell using MM indicator?

For me i try to use them as a way to determine chart pattern targets ,

read my previous posts here if you 've time ,

#415, #417,#419,#478,#500,#533,#571,#572