Reply

Price crosses above assigned variable (Market Order)

5 replies

IvanD1983

Subscriber, bbp_participant, community, 46 replies.

Visit profile

6 years ago #117527

Hi Tomas et all,

 

I am currently stuck under the following situation. 

 

I want my EA to first assess a given range from 19:00 until 19:45. After that, some variables will be assigned, such as highest, lowest and mid of the range levels. Afterwards, from 20:00, I want the EA to take a trade Long on a Market Order if price crosses above the ‘mid range’ variable. Unfortunately, the ‘mid range’ variable seems not to be recognized as no positions are entered. However, if i give the EA the order to enter Long on a Limit Order if above the mid range or on a Stop Order when below, it works and the ‘mid range’ level is recognized. 

 

Can you please help me find a solution for the order to be at Market?

 

I hereby attach my initial sqw file. 

File: test.sqw

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #144314

Ok, will check the EA and modify if possible (also seen your other post)

0

IvanD1983

Subscriber, bbp_participant, community, 46 replies.

Visit profile

6 years ago #144321

Thanks for your constant support Tomas.

 

I look forward to hearing from you. 

0

IvanD1983

Subscriber, bbp_participant, community, 46 replies.

Visit profile

6 years ago #144398

Any news?

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #144404

Hello,

 

I have modified your EA so now it opens long once the range mid price is crossed

0

IvanD1983

Subscriber, bbp_participant, community, 46 replies.

Visit profile

6 years ago #144447

Will have a look today. Thanks!

0

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