Reply

Trading only at a specific time

5 replies

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

6 years ago #232864

Hi,

I’m trying to integrate a “Trading Time”. The user is able to set 3 times for trading (i.e. from 9 to 10) like in the screenshot. But when I’am running in visualmodetest the ea does not bother with the trading times. Does anybody see the failure?

Thanks for help!

🙂

Attachments:
You must be logged in to view attached files.

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

6 years ago #232866

I changed from Hour to TimeCurrent. But now it’s opening nothing.

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #232901

Hello,

so the EA does open trades all the time outside trading hours? The problem could be you also need to setup similar condition that sets Time_for_Trading variable back to FALSE. You can attach zipped SQW file so I can add the condition for you

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

6 years ago #232921

Hi Tomas,

here is the EA. I thought I have done all right but perhaps you can detect the failure?!

Thanks for your help! 🙂

Attachments:
You must be logged in to view attached files.

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #232948

Hello,

try to replace TimeCurrent with Hour[0], then it should work properly

0

Conmariin

Subscriber, bbp_participant, community, customer, 54 replies.

Visit profile

6 years ago #232955

Okay, I’ll try it.

Thanks Tomas! 🙂

Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de

0

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