Not logged in

Forums

Viewing 7 posts - 1 through 7 (of 7 total)
  • #200725 |
    Participant
    6 Posts

    I’ve made an EA and it’s working good but i don’t want it to trade on weekend gaps. It’s dangerous for my EA strategy. I haven’t used any time related thing in my EA and i don’t know how to deal with time variables and functions.

    I want help, I don’t want my EA to open any trade on friday ending time till monday past 12 hours… so for almost like 3 hours of friday closing and 12 hours after monday opening (total 15 hours), i don’t my EA to open trade..

    Can anyone please tell me the rules? or if have sqw file then please attach.. Thanks

    #200733
    Administrator
    506 Posts

    Hello Adil,

    I have made an example on how to enter a trade from Monday 9 a.m. to Friday 6 p.m. Check the file attached

    Attachments:
    You must be logged in to view attached files.
    #200768
    Participant
    6 Posts

    thank you very much.. i have another question.. in my strategy i’m using ema and sma crossing for order opening and closing.. but it opens the order quickly on the touch of the line.. and that’s horrible cause sometimes due to market variations, the sma touch the ema during candle opening and the time when that candle closes it goes straight to the opposite side so the order is opened but the ema and sma didn’t have crossover.. i want order to be opened when a perfect crossover happens, when the candle closes with having crossovers of sma and ema , not on just the touch of those moving averages..

    #200769
    Participant
    6 Posts

    thank you very much.. i have another question.. in my strategy i’m using ema and sma crossing for order opening and closing.. but it opens the order quickly on the touch of the line.. and that’s horrible cause sometimes due to market variations, the sma touch the ema during candle opening and the time when that candle closes it goes straight to the opposite side so the order is opened but the ema and sma didn’t have crossover.. i want order to be opened when a perfect crossover happens, when the candle closes with having crossovers of sma and ema , not on just the touch of those moving averages..

    I’ve attached the sqw file of my strategy..

    #200770
    Participant
    6 Posts

    .

    #200771
    Participant
    6 Posts

    why i can’t attach sqw file.. it shows error “Sorry, this file type is not permitted for security reasons.’

    #200779
    Administrator
    506 Posts

    Hello,

    please ZIP the file and try to attach or send to support@strategyquant.com

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

You must be logged in to reply to this topic.