can anyone help with this simple code?

 

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

 
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 

 
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];
 

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

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

Good luck ... 

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

Reason: