looking to create simple price bar in@dicator

 

Hey everyone, new to the forum. Looking to start off slow so as an example I'm trying just setup the following:

 

if bar is green candle then 

calculate open price + close price >= "x number of pips"

then enter short position on same time frame

 

if open price red bar then

calculate open price - close price >= "x number of pips"

then enter long position on same time frame

 

Not sure how to put this into mql5 exactly. Is there a simple way to do this or something like that that already exists perhaps?

any help would be greatly appreciated, tnx in advance.

 

Forum on trading, automated trading systems and testing trading strategies


Welcome,

  • Usually people who can't code don't receive free help on this forum, though it could happen if you are lucky, be patient.
  • If you show your attempts and describe well your problem, you will most probably receive an answer from the community.
  • If you don't want to learn to code, nothing bad, you can either look at the Codebase if something free already exists, or in the Market for paid products (sometimes free also).
  • Finally, you also have the option to hire a programmer in the Freelance section.

Good luck.


 
okay will do tnx very much.
Reason: