Can someone me code this info into MT4 indicator?

 

I have no coding experience but i will be so grateful if you or anyone out there can help me to code an indicator in form of two horizontal lines base on this info..


1)  previous bar high-previous bar low=X
next bar open price  +  X
plot horizontal line at the calculated value high


2) previous bar high-previous bar low=X
next bar open price - X
plot horizontal line at the calculated value low


Example 1,  previous bar high @ 1.14072
previous bar low @ 1.13585
therefore   1.14072 - 1.13585 = 0.00487
next bar open price @ 1.13979 + 0.00487 = 1.14466
1.14466  is our high forecast value where the horizontal line should be plotted


Example 2,  previous bar high @ 1.14072
previous bar low @ 1.13585
therefore   1.14072 - 1.13585 = 0.00487
next bar open price @ 1.13979 - 0.00487 = 1.13492
1.13492  is our low forecast value where the horizontal line should be plotted.


please note, horizontal lines should be short(not ray), and there should be an input parameter for all time frames from H1,H4,D1,W1 and MN


If anyone  would be kind enough to help, i will gladly share my trading strategy with all generous members of this forums .
It works almost 90 percent but am just tire of calculating it manully all the time.
THANKS.

 

Just to remind:

Coders (any coder) are coding for free:

  • if it is interesting for them personally, or
  • if it is interesting for many members of this forum.

----------------

and Freelance section of the forum should be used in most of the cases.

 
How about adding X to an average of prev bar's High, Low and Close?
 
Stanley EpsiBari Deede Nwiko:

I have no coding experience but i will be so grateful if you or anyone out there can help me to code an indicator in form of two horizontal lines base on this info..



Here you are. Please share me how to trade with it. Thanks.

Files:
 
Stanley EpsiBari Deede Nwiko:

Out of curiosity, have you tried ATR instead of the previous bar height?

 
Khanh Pham:

Here you are. Please share me how to trade with it. Thanks.

Dear Mr Khanh you are the man!!!

expect my message soon.

Of a truth there is love in sharing!!! 

 
How to trade with it?
 
palteraf:
How to trade with it?

they are price projection lines mainly for profit targeting.

wait for price to break either a support or a resistance level then use those lines as T.P

 
kypa:
How about adding X to an average of prev bar's High, Low and Close?

that would be nice kypa if you  can do it and share the indicator.

sorry for replying late.