Question on number of codes running 1 pair + code question.

Forums ProRealTime English forum ProOrder support Question on number of codes running 1 pair + code question.

Viewing 6 posts - 1 through 6 (of 6 total)
  • #131402

    Hi Guys/Gals

    Quick question as I’m new to pro-order and just running my first codes live. I read a line somewhere that you can’t have more than one order on an item, so I have a live autotrading code on cable and EURUSD running, and I want to try a second program on EURUSD on another strategy I thought up.

     

    Firstly can I run more than one program on a single currency pair?

    Am I safe to it not closing anything off, don’t want to lose the profit, but also don’t want to have to restart the live test of the strategy.

     

    My other coding question is I have overcome finding current price on the chart for a function of the strategy by using variables and some simple logic, and I will be doing the 2nd Video course in due time to have a good grounding, but the question is:-

     

    Is there a way to get the code to call the current price, so say CurrentPrice > OPEN[0] but I can’t find expression for calling the CurrentPrice whilst candle is forming,

    or is it down to using logical variables available to obtain the result..

    Cheers for any input. Sooner I can clarify the 2 orders on the chart sooner I can try the code, I have to change parameters for other charts, so will do this, but its optimised for EURUSD at mo so was hoping to run it as well as my other strategy..

    Cheers in advance…

     

    #131404

    You can run multiple strategies on the same instrument (stocks, indices, fx pairs), even hedging (provided you set an option with IG for your accont). Since strategies are independent and cannot communicate with one another, you are allowed to do it. While you cannot open opposite trades within the same strategy.

    Since strategies are executed when a candle closes, the only way to access a candle while it’s forming, is taking advantage of MTF (Multi, or Multiple, Time Frame) support, which allows you to use lower TF’s together with higher ones.

    Searching MTF will return plenty of data and examples about this topic.

     

    #131430

    Ok cheers Robert,  that kinda makes sense, so I’m guessing you could use a 1s candle timeframe and use the candles open high low close parameters, or that type of thinking, but I’ll look up MTF as you suggest, though having trouble finding a search feature at mo.. LOL I overcame my problem with :

    Var1 = (Open [0]+1)// def for moving past open bullish
    Var2 = (Open [0]-1)//def for moving past open bearish
    Var3 = high[0]
    Var4 = low[0]

    The IG option, cant see one immediately and tech support a little non-answering, but I’m assuming it will act as in the default parameters, currently at market orders or orders without a stop net off, and orders with a stoploss or limit are forced open. I would assume that if the code has stoploss or take profit it will be forced open and orders relative to that trade be executed for that trade unless netting off manually. It’s a 12hr candle strategy and didn’t want to be closing off my running trade or have to interfere with the strategy running.

     

    Cheers fo rthe suport – appreciated

    #131435

    Click on your profile picture in the top right and a search box appears beneath it.

    #131436

    A search box opens whenever you hover your avatar on the right corner of the upper blue bar.

    #131452

    Ah so it is and does – cheers

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

Create your free account now and post your request to benefit from the help of the community
Register or Login