Download MetaTrader 5

can anyone help with this simple code?

To add comments, please log in or register
Find out how to install MetaTrader on Mac OS
Pizzo1976
33
Pizzo1976 2015.10.08 10:42 

Hello,


I need to code this simple entry:


Candle A

Candle B

Candle C

Current candle D


Entry rule:


if Open B > low A

and

if High B < low C


then Buy at the opening of candle D


If anybody can help would be very much appreciated!


Thank you


Regards

Pizzo

Doerk Hilger
1154
Doerk Hilger 2015.10.08 17:25  
Pizzo1976:

"then Buy at the opening of candle D"


You seem to need the time-machine plugin for MT ;)

I think the freelance section will help you ... at least with the rest.

Doerk 

Jose Miguel Soriano
4957
Jose Miguel Soriano 2015.10.09 08:46  
Pizzo1976:

Hello,


I need to code this simple entry:


Candle A

Candle B

Candle C

Current candle D


Entry rule:


if Open B > low A

and

if High B < low C


then Buy at the opening of candle D


If anybody can help would be very much appreciated!


Thank you


Regards

Pizzo

Candle A= 3

Candle B= 2

Candle C= 1

Current candle D= 0

bool entryBuy= Open[2]>Low[3] && High[2]<Low[1];
Osama Shaban
1444
Osama Shaban 2015.10.09 12:36  

I attached a simple EA opens only Buy orders ...

You can add your Sell orders rule to make it work ...

Good luck ... 

Files:
Pizzo1976
33
Pizzo1976 2015.10.09 22:33  
Osama Shaban:

I attached a simple EA opens only Buy orders ...

You can add your Sell orders rule to make it work ...

Good luck ... 

 

Thank you very much! very kind

 

Regards

 

Pizzo 

To add comments, please log in or register