Jump to content

Price Action Indicator - PAIN


K12

Recommended Posts

Re: Price Action Indicator - PAIN

 

Here\'s the indicator that i\'ve built.

 

Since the article said that the time frame is daily, I set it to daily for default, however you could set any timeframe as you want. Read the input parameter instruction for details.

 

Regards,

Ore no Shinka Hikari yo Hayai. Zen Uchi o Nani no Mono Ore no Shinka Chuito Kore Nai.

Ten no Michi yo Iki. Subete o Sukosadoru Otoko.

Link to comment
Share on other sites

Re: Price Action Indicator - PAIN

 

Here\'s the indicator that i\'ve built.

 

Since the article said that the time frame is daily, I set it to daily for default, however you could set any timeframe as you want. Read the input parameter instruction for details.

 

Regards,

 

I knew someone will do it. Great job. Cheers. :arrow:

Link to comment
Share on other sites

  • 4 months later...

Re: Price Action Indicator - PAIN

 

Thanks for share Bro Wil...

Btw i just have thinking funny about the short name,,, PAIN Indicator, maybe someday we will have another Akatsuki or Naruto 'n Sasuke Indicator hehehehe... :mrgreen: :roll: :peace:

My Motto is:

(D)o'a

(U)saha

(I)khtiar

(T)awakal

Link to comment
Share on other sites

Re: Price Action Indicator - PAIN

 

Could you post the PAIN indi in mq4 code,please? Thanks! :peace:

Seems I lost the mq4. Just crack it with decompiler.

 

Thanks for share Bro Wil...

Btw i just have thinking funny about the short name,,, PAIN Indicator, maybe someday we will have another Akatsuki or Naruto 'n Sasuke Indicator hehehehe... :mrgreen: :roll: :peace:

:D

 

However, do you know that in reality Uchiha and Hyuuga are real strong ninja clans back then. One of the famous one in legend (they said) is Uchiha Sarutobi, since you are naruto lover I think you would remember that the 3rd hokage is named Sarutobi. If you watch many ninja movies from Japan, you will recognize that Uchiha and Hyuuga are often considered as the strong ninja in the movie. That's because those 2 clans are real clans and strong clans in history.

 

Well, just an intermezzo :D

 

Regards,

Ore no Shinka Hikari yo Hayai. Zen Uchi o Nani no Mono Ore no Shinka Chuito Kore Nai.

Ten no Michi yo Iki. Subete o Sukosadoru Otoko.

Link to comment
Share on other sites

  • 1 month later...

Re: Price Action Indicator - PAIN

 

Pls could someone explain how to use this indicator??? I used daily timeframe of this indicator on a 1hr chart and it doesn't seem to work properly. I feel am using this indicator wrongly...

One obvious truth.FOREX IS ANYTHING BUT EASY
Link to comment
Share on other sites

Re: Price Action Indicator - PAIN

 

Here\'s the indicator that i\'ve built.

 

Since the article said that the time frame is daily, I set it to daily for default, however you could set any timeframe as you want. Read the input parameter instruction for details.

 

Regards,

thank you william

Link to comment
Share on other sites

  • 3 weeks later...
Guest jaet1989

Re: Price Action Indicator - PAIN

 

//Pollan ex4 decompiled for you.................................

 

/*

Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []

Website: http://purebeam.biz

E-mail : [email protected]

*/

#property copyright "Copyright © 2009, MetaQuotes Software Corp."

#property link "http://www.metaquotes.net"

 

#property indicator_separate_window

#property indicator_buffers 1

#property indicator_color1 Red

 

double g_ibuf_76[];

double g_icustom_80;

double g_icustom_88;

double gd_96;

double gd_104;

double gd_112;

double gd_120;

double gd_128;

double gd_136 = 0.0;

extern int n = 2;

 

int init() {

SetIndexStyle(0, DRAW_LINE);

SetIndexBuffer(0, g_ibuf_76);

string ls_0 = "Pollon";

IndicatorShortName(ls_0);

return (0);

}

 

int deinit() {

return (0);

}

 

int start() {

int l_ind_counted_0 = IndicatorCounted();

int li_4 = 1;

g_icustom_80 = iCustom(NULL, 0, "RSI", 0, li_4);

g_icustom_88 = iCustom(NULL, 0, "CCI", 0, li_4);

Comment(g_icustom_80, " ", g_icustom_88);

indi();

return (0);

}

 

void indi() {

double ld_24;

int li_0 = IndicatorCounted();

if (li_0 >= 0) {

if (li_0 > 0) li_0--;

for (int li_4 = Bars - li_0; li_4 >= 0; li_4--) {

gd_96 = iCustom(NULL, 0, "CCI", 0, li_4) - iCustom(NULL, 0, "RSI", 0, li_4);

gd_104 = iCustom(NULL, 0, "CCI", 0, li_4 - 1) - iCustom(NULL, 0, "RSI", 0, li_4 + 1) - (iCustom(NULL, 0, "CCI", 0, li_4) - iCustom(NULL, 0, "RSI", 0, li_4));

gd_112 = iCustom(NULL, 0, "CCI", 0, li_4 - 2) - iCustom(NULL, 0, "RSI", 0, li_4 + 2) - (iCustom(NULL, 0, "CCI", 0, li_4 - 1) - iCustom(NULL, 0, "RSI", 0, li_4 + 1));

gd_136 = iCustom(NULL, 0, "CCI", 0, li_4 - n) - iCustom(NULL, 0, "RSI", 0, li_4 + n) - (iCustom(NULL, 0, "CCI", 0, li_4 - (n - 1)) - iCustom(NULL, 0, "RSI", 0, li_4 +

(n - 1)));

if (gd_96 > gd_104 && gd_96 > gd_112 && gd_96 > gd_136) gd_120 = gd_96;

if (gd_104 > gd_96 && gd_104 > gd_112 && gd_104 > gd_136) gd_120 = gd_104;

if (gd_112 > gd_96 && gd_112 > gd_104 && gd_112 > gd_136) gd_120 = gd_112;

if (gd_136 > gd_96 && gd_136 > gd_104 && gd_136 > gd_112) gd_120 = gd_136;

if (gd_96 < gd_104 && gd_96 < gd_112 && gd_96 < gd_136) gd_128 = gd_96;

if (gd_104 < gd_96 && gd_104 < gd_112 && gd_104 < gd_136) gd_128 = gd_104;

if (gd_112 < gd_96 && gd_112 < gd_104 && gd_112 < gd_136) gd_128 = gd_112;

if (gd_136 < gd_96 && gd_136 < gd_104 && gd_136 < gd_112) gd_128 = gd_136;

ld_24 = gd_120 + gd_128;

g_ibuf_76[li_4] = ld_24;

}

}

}

Link to comment
Share on other sites

Guest jaet1989

Re: Price Action Indicator - PAIN

 

// PAIN indicator decompiled for you all

 

/*

Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []

Website: http://purebeam.biz

E-mail : [email protected]

*/

#property copyright "Copyright © 2008, MetaQuotes Software Corp."

#property link "http://www.metaquotes.net"

 

#property indicator_separate_window

#property indicator_buffers 1

#property indicator_color1 Black

 

extern string IIIIIII = "1440 for daily";

extern string IIIIIIII = "10080 for weekly";

extern string IIIIIIIII = "43200 for monthly";

extern string IIIIIIIIII = "0 for current TF";

extern int myPeriod = 1440;

double g_ibuf_112[];

 

int init() {

SetIndexBuffer(0, g_ibuf_112);

return (0);

}

 

int deinit() {

return (0);

}

 

int start() {

double l_shift_12;

double l_iopen_20;

double l_iclose_28;

double l_ihigh_36;

double l_ilow_44;

int l_ind_counted_8 = IndicatorCounted();

int li_0 = Bars - l_ind_counted_8;

for (int li_4 = li_0 - 1; li_4 >= 0; li_4--) {

l_shift_12 = iBarShift(Symbol(), myPeriod, Time[li_4], FALSE);

l_iopen_20 = iOpen(Symbol(), myPeriod, l_shift_12);

l_iclose_28 = iClose(Symbol(), myPeriod, l_shift_12);

l_ihigh_36 = iHigh(Symbol(), myPeriod, l_shift_12);

l_ilow_44 = iLow(Symbol(), myPeriod, l_shift_12);

g_ibuf_112[li_4] = (l_iclose_28 - l_iopen_20 + (l_iclose_28 - l_ihigh_36) + (l_iclose_28 - l_ilow_44)) / 2.0;

}

return (0);

}

Link to comment
Share on other sites

  • 1 year later...
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...