Use indices strategy for forex

Forums ProRealTime English forum ProOrder support Use indices strategy for forex

Viewing 9 posts - 1 through 9 (of 9 total)
  • #23092

    Hello,

    I wanna use my indices strategy for forex too.

    Can someone tell me what I have to do to make it work for the forex markets?

    Thanks a lot!

    #23114

    Depends of the strategies’ codes of course.

    But you should adapt trading schedules and points calculation (if you use some points values in your code), these are the common things to change first. If you can post a code example, I’ll teach you how 🙂

    #23195

    Hello,

    this is the code I try to change:

     

    #23205

    I do not see anything to be adapted for forex trading, but there are wrong copy/paste or you have modified things in the strategy code, so that now the conditional statements don’t follow any logic.

    I modified the code to be correct I think, I did not test it.. Your job 🙂 Here it is:

     

    #23242

    The code works like before… does that mean it wouldn’t have worked for AutoTrading? So I always have to put stop loss and target profit at the bottom?

    So it’s not possible to use the code for forex?

    #23246

    This code can be of course used for forex trading. Like I said, I don’t see anything that could not worked on this type of instrument.

    Just saw a mistake on the STOP LOSS instruction, you should replace the line 54 with this one instead:

     

    #23771

    The code works now, thanks a lot!

    Now I have one more question: Is there a possibility that the strategy buys or sells as soon as the price reaches entrylong/entryshort?

    At the moment the strategy buys when the next candle reaches entrylong/entryshort after the close was below or above entrylong/entryshort.

    So is there another code for “close” when I want to buy exactly when entryshort or -long is reached the first time?

     

    #24075

    This strategy should already buy at exact prices of “entrylong” and “entryshort”, because it uses STOP pending orders at these levels. Or maybe I do not understood well your question?

    #24129

    Yes it buys at exact prices, but not when the price is triggered the first time! It buys when it’s triggered the second time.

    For example if say buy 1 share at entrylong Stop and entrylong Stop is at 10.000 points, the strategy buys when the course already was over 10.000 points and comes back to 10.000 points at another candle.

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

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