Initial Capital allocation

Forums ProRealTime English forum ProOrder support Initial Capital allocation

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

    Hi there,

    Small question; is it possible to program the initial capital allocation over, say, the days of the week in automated trading – so without the need to change it manually everyday?

    Right now, the only possibility I know of is to change it in the window to the left when you’re about to start running your code in real time. Is there another way?

    If not, is that something they, at Prorealtime, are working on?

    Thanks a lot for the replies..

    #169496

    Post your topic in the correct forum:
    _ ProRealTime Platform Support: only platform related issues.
    _ ProOrder: only strategy topics.
    _ ProBuilder: only indicator topics.
    _ ProScreener: only screener topics
    _ General Discussion: any other topics.
    _ Welcome New Members: for new forum members to introduce themselves.

    I moved it from ProRealTime Platform Support.

    Thank you 🙂

    ————————————————————————————————————————

    Capital can only be automatically updated with the addition of the STRATEGYPROFIT of the strategy.

    It’s not like indicators, where you have a property window to change settings.

     

    #169497

    I’m sorry, I thought i had posted it on the ProRealTime platform support, I’ll post it again, my bad..

    #169502

    No, I moved it. Do not double post.

     

    #169571

    Okay, then I’ve got another question related to the STRATEGYPROFIT command.

    It says in the manual that Strategyprofit[1] returns the profit or losses at the close of the previous bar.

    Does this also mean that, if you’re onmarket at the close of the previous bar, it takes into account the loss or profit of the current open position?

    #169577

    No, STRATEGYPROFIT is updated after each trade closes.

    The current temp profit/loss is returned by POSITIONPERF, which is a positive/negative multiplier that you may want to convert into money or pips:

    then you can add POSITIONPERF (converted into Money) to STRATEGYPROFIT  in order to get the whole current profit/loss.

     

    #169584

    I’ll try that instead then! I’ve been testing the following piece of code :

    combined with the desire to stop any current open position before 11pm friday in order to avoid overnight funding during the weekend

    Below code (any ongoing loss less than X or ongoing profit that hasn’t reached the target profit can be closed)

    was a parallel attempt to your code (at least, so it does seem to me) :

    but my code doesn’t seem to be working like I want it to! I don’t know why ?

    #169593

    You should post an exampleof code that I can test.

    If you post it, please let me also know what instrument and TF you tested it, so I can replicate your trades.

     

     

    #170126

    I’ll first give it a try with your formula, to see if it behaves like I would want it to…

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