Coding help - page 224

 

Dear Mladen

I found the problem. It was Bid and Ask problem!

Best,

 
Air92:
Hello,Mladen.Whether probably to add in Momentum-Atr the ema+ filter indicator? But only that EMA was too normalized? It will be probably better to add other average, SMA maybe.Frankly, I don't know what to make. I want to receive in this indicator a cross with MA.It is necessary in order that momentum crosses zero-entry. Crosses a MA -exit

Please help.

Thank you.

Dear Mladen,if it is impossible or it is irrational, please, tell me

 
Air92:
Dear Mladen,if it is impossible or it is irrational, please, tell me

Air92

I really am not sure if I understood the post correctly. Here is a version that has a "signal" line added for which you can chose the averaging method (the usual ones : sma, ema, smma and lwma)

 
mladen:
Air92 I really am not sure if I understood the post correctly. Here is a version that has a "signal" line added for which you can chose the averaging method (the usual ones : sma, ema, smma and lwma)

Yes. You correctly understood.Thank you,it that is necessary.

Files:
images.jpg  14 kb
 

Volatility histogram

Hi,

I got this indicator which plots how many std deviations each bar moves but when I plot it for for gold or s&p the std deviations is not plotted correctly. The website I got it from explains how it is suppose to work: Close to Close - MetaTrader Expert Advisor

Can someone please help to fix it so that it shows the number of standard deviations a bar has moved compared to x bars.

Thanks

standard-deviation-close-to-close.mq4

 
tradewiser:
Hi,

I got this indicator which plots how many std deviations each bar moves but when I plot it for for gold or s&p the std deviations is not plotted correctly. The website I got it from explains how it is suppose to work: Close to Close - MetaTrader Expert Advisor

Can someone please help to fix it so that it shows the number of standard deviations a bar has moved compared to x bars.

Thanks

standard-deviation-close-to-close.mq4

tradewiser

As I see it, it is not meant to show standard deviations but standard deviation of a normalized momentum. As far as code is concerned, the way it is calculated it seems that the coder did exactly what he intended to do

 

ok, thanks. I understand now

mladen:
tradewiser As I see it, it is not meant to show standard deviations but standard deviation of a normalized momentum. As far as code is concerned, the way it is calculated it seems that the coder did exactly what he intended to do
 

Hi mladen and mrtools, sorry to bother you guys , but i have 1 quick question ... How do i make the 15min and the 30min to be on top of 1 hr and 4 hr .. as you can see on the screen shot the 1hr and the 4hr is on top of the 15 min and the 30 min...i try doing it myself but no luck .. you guys mind doing it for me, really much appreciate...thank you very much

ichi360_monitor_v3_mod_1.mq4

 
johnjacob:
Hi mladen and mrtools, sorry to bother you guys , but i have 1 quick question ... How do i make the 15min and the 30min to be on top of 1 hr and 4 hr .. as you can see on the screen shot the 1hr and the 4hr is on top of the 15 min and the 30 min...i try doing it myself but no luck .. you guys mind doing it for me, really much appreciate...thank you very much ichi360_monitor_v3_mod_1.mq4

johnjacob

In the code find the lines that have "OBJPROP_YDISTANCE" in the code and interchange the values for object named "txt1H_..." with "txt4H_..." and "txt30M_..." with "txt15M_...". Once when you do that (interchange y positions) all will be OK

 

you mean like this ... it didnt come out right ... its better if you do it , then ill be done asking

// --- MasterWhite Text added

ObjectCreate("txt15M_1", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt15M_1", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt30M_1", OBJPROP_YDISTANCE, TextOffSetFromTop + 116);

ObjectSet("txt15M_1", OBJPROP_XDISTANCE, TextOffSetFromRight + 120);

ObjectCreate("txt15M_2", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt15M_2", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt30M_2", OBJPROP_YDISTANCE, TextOffSetFromTop + 116);

ObjectSet("txt15M_2", OBJPROP_XDISTANCE, TextOffSetFromRight + 94);

ObjectCreate("txt15M_3", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt15M_3", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt30M_3", OBJPROP_YDISTANCE, TextOffSetFromTop + 116);

ObjectSet("txt15M_3", OBJPROP_XDISTANCE, TextOffSetFromRight + 68);

ObjectCreate("txt15M_4", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt15M_4", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt30M_4", OBJPROP_YDISTANCE, TextOffSetFromTop + 116);

ObjectSet("txt15M_4", OBJPROP_XDISTANCE, TextOffSetFromRight + 34);

ObjectCreate("txt15M_5", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt15M_5", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt30M_5", OBJPROP_YDISTANCE, TextOffSetFromTop + 116);

ObjectSet("txt15M_5", OBJPROP_XDISTANCE, TextOffSetFromRight);

// ---- Original Text ( has moved down )

ObjectCreate("txt1H_1", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt1H_1", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt4H_1", OBJPROP_YDISTANCE, TextOffSetFromTop + 76);

ObjectSet("txt1H_1", OBJPROP_XDISTANCE, TextOffSetFromRight + 120);

ObjectCreate("txt1H_2", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt1H_2", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt4H_2", OBJPROP_YDISTANCE, TextOffSetFromTop + 76);

ObjectSet("txt1H_2", OBJPROP_XDISTANCE, TextOffSetFromRight + 94);

ObjectCreate("txt1H_3", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt1H_3", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt4H_3", OBJPROP_YDISTANCE, TextOffSetFromTop + 76);

ObjectSet("txt1H_3", OBJPROP_XDISTANCE, TextOffSetFromRight + 68);

ObjectCreate("txt1H_4", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt1H_4", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt4H_4", OBJPROP_YDISTANCE, TextOffSetFromTop + 76);

ObjectSet("txt1H_4", OBJPROP_XDISTANCE, TextOffSetFromRight + 34);

ObjectCreate("txt1H_5", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt1H_5", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt4H_5", OBJPROP_YDISTANCE, TextOffSetFromTop + 76);

ObjectSet("txt1H_5", OBJPROP_XDISTANCE, TextOffSetFromRight);

// --- MasterWhite Text added

ObjectCreate("txt30M_1", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt30M_1", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt15M_1", OBJPROP_YDISTANCE, TextOffSetFromTop + 136);

ObjectSet("txt30M_1", OBJPROP_XDISTANCE, TextOffSetFromRight + 120);

ObjectCreate("txt30M_2", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt30M_2", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt15M_2", OBJPROP_YDISTANCE, TextOffSetFromTop + 136);

ObjectSet("txt30M_2", OBJPROP_XDISTANCE, TextOffSetFromRight + 94);

ObjectCreate("txt30M_3", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt30M_3", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt15M_3", OBJPROP_YDISTANCE, TextOffSetFromTop + 136);

ObjectSet("txt30M_3", OBJPROP_XDISTANCE, TextOffSetFromRight + 68);

ObjectCreate("txt30M_4", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt30M_4", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt15M_4", OBJPROP_YDISTANCE, TextOffSetFromTop + 136);

ObjectSet("txt30M_4", OBJPROP_XDISTANCE, TextOffSetFromRight + 34);

ObjectCreate("txt30M_5", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt30M_5", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt15M_5", OBJPROP_YDISTANCE, TextOffSetFromTop + 136);

ObjectSet("txt30M_5", OBJPROP_XDISTANCE, TextOffSetFromRight);

// ---- Original Text ( has moved down )

ObjectCreate("txt4H_1", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt4H_1", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt1H_1", OBJPROP_YDISTANCE, TextOffSetFromTop + 96);

ObjectSet("txt4H_1", OBJPROP_XDISTANCE, TextOffSetFromRight + 120);

ObjectCreate("txt4H_2", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt4H_2", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt1H_2", OBJPROP_YDISTANCE, TextOffSetFromTop + 96);

ObjectSet("txt4H_2", OBJPROP_XDISTANCE, TextOffSetFromRight + 94);

ObjectCreate("txt4H_3", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt4H_3", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt1H_3", OBJPROP_YDISTANCE, TextOffSetFromTop + 96);

ObjectSet("txt4H_3", OBJPROP_XDISTANCE, TextOffSetFromRight + 68);

ObjectCreate("txt4H_4", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt4H_4", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt1H_4", OBJPROP_YDISTANCE, TextOffSetFromTop + 96);

ObjectSet("txt4H_4", OBJPROP_XDISTANCE, TextOffSetFromRight + 34);

ObjectCreate("txt4H_5", OBJ_LABEL, 0, 0, 0);

ObjectSet("txt4H_5", OBJPROP_CORNER, DisplayCorner);

ObjectSet("txt1H_5", OBJPROP_YDISTANCE, TextOffSetFromTop + 96);

ObjectSet("txt4H_5", OBJPROP_XDISTANCE, TextOffSetFromRight);

Reason: