Daily strategy profit

Forums ProRealTime English forum ProBuilder support Daily strategy profit

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

    Hi colleagues,

    Is there any way to measure the daily strategy profit of one code?? I would like to limit the daily operations to a certain strategy profit per day.

    I thought that including a daily reseting paragraph would do it:

    Is that even possible?? Any coding suggestions or links will be welcome

    Thanks in advance

    Juan

     

    #52093

    I would suggest:

     

    #52094

    Hi Roberto,

    It seems a very good solution. Many thanks for your help and your prompt response.

    Juan

    #52174

    Hi Roberto,

    This is part of the code where I have translated the info you gave me. I want to trade daily until either I get the daily profit of 20 pips or daily loss of 20 pips. After one of these two are achieved, I would like to stop operations until next day. DEFPARAM Flatbefore and Flatafter are set for 060000 and 200000.

    I don’t know if you can measure strategy profit in pips or have to due in currency.

    Thanks again,

     

    #52180

    STRATEGYPROFIT only deals with money (https://www.prorealcode.com/topic/strategyprofit/#post-51298).

    I think lines 27 and 33 are wrong, since the expression

    will convert Pips to price, i.e. DAX will be converted to 20 (unchanged due to the fact that Dax is over 10000 and has no decimal digits), EurUsd to 0.0020. Both of them have nothing to do with profit/loss.

    With DAX it’s pretty easy to convert Euros into Pips, since each Pip is 25 euros (or 1 for mini contracts), so if you have Euro 750 profit it equals 30 pips. AS for currency pairs and other instruments it could not be as straightforward!

    I have no knowledge of a way to work it out easily.

     

    #52184

    Hi Roberto,

    Thanks. I got it. I like to monitor and control daily results and this piece of code is going to be very useful for my future coding.

    Grazie mille,

    Juan

     

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