# Can this be done at all?

4 replies

8 years ago #111567

Hi all

I am having some problems programming s/l and p/t dependent on a range, can anyone tell me if EA wizard can do below at all:

Example:

All numbers in this example should be dynamic variables.

Let us assume that:

Highest high from 2300 hours to 0830 hours is 1100.

Lowest low from 2300 hours to 0830 hours is 1000.

Only from 0830 hours to 1300 hours do the following and only once a day:

Buy if price reach 1100 + 2 = 1102.

Set s/l to 1100 – (1100 ‘â€œ 1000) x 0,61,8 = 1038,2

When price reach 1100 + (1100 ‘â€œ 1000) x 0,33 = 1133 sell 1/3 and move s/l to buy price(1102)

When price reach 1100 + (1100 ‘â€œ 1000) x 0,618 = 1161,8 sell 1/3 and move s/l to 1100 + (1100 ‘â€œ 1000) x 0,33 = 1133

Set trailing stop to 10

Stop order at 2300 hours.

Anyone?

Thanks

Jesper

8 years ago #122574

And sma(89) on a one hour chart should be rising, thanks….

8 years ago #122591

Hello,

yes, it can be done. I’m attaching the strategy as you described.

It is little bit complicated, I hope you understand it.

Mark

Mark
StrategyQuant architect

8 years ago #122593

Thank you 🙂

8 years ago #122594

Looked at it now… thank you very much. I am very happy for EA wizard 🙂

Viewing 5 posts - 1 through 5 (of 5 total)