Not logged in

Forums

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

Forums>EA Wizard>Application Support>Trading only at a specific time

  • #232864 |
    Conmariin
    Participant
    95 Posts

    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.
    #232866
    Conmariin
    Participant
    95 Posts

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

    #232901
    Administrator
    678 Posts

    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

    #232921
    Conmariin
    Participant
    95 Posts

    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.
    #232948
    Administrator
    678 Posts

    Hello,

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

    Attachments:
    You must be logged in to view attached files.
    #232955
    Conmariin
    Participant
    95 Posts

    Okay, I’ll try it.

    Thanks Tomas! 🙂

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

You must be logged in to reply to this topic.