Download MetaTrader 5

can anyone help with this simple code?

To add comments, please log in or register
Pizzo1976
38
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

Doerk Hilger
1553
Doerk Hilger  
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
5084
Jose Miguel Soriano  
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
1584
Osama Shaban  

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

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

Good luck ... 

Files:
Pizzo1976
38
Pizzo1976  
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