The same Code doing different things

Forums ProRealTime English forum ProOrder support The same Code doing different things

Viewing 3 posts - 16 through 18 (of 18 total)
  • #157866

    Nicolas – again thank you for your help.

    All graphing is done by the Backtest program. No indicators (graphing) of either in Backtest or in Paper running same program.
    Example of a Graph command :

    The comment you see tells about me needing to comment-out the Graph commands for the Live/Paper environment, because they are not allowed there.

     

    MODERATORS EDIT: Image deleted. Do not insert images into your posts as previously requested.

     

    The black line is unimportant for this issue. But it would indicate maximum gain that occurred during this order (not taken).

    The Grey line is a Trailing line similar to how PRT would show *and* use it (see red line in the 2nd attachment and more explanation below).

    The Green line is the current Gain in “net” (netto) sense. It includes perceived Commission and perceived Spread. When the Grey line crosses over the Green line, the order will Exit. Difference with the normal PRT Trailing, is that this one can be made as “intelligent” as I am myself (which is limited). The intelligence is there to maximise profit per trade. All sorts of shapes can come from this (and you have seen a few by now). For fun, in the 3rd attachment quite a different shape, from the same “run”.

    All lines fall to a virtual zero when the order Exits.

    Before you ask, the Blue line is “up” when the order is allowed to Exit (take its gain).

    Kind regards,
    Peter

    #157941

    When the Grey line crosses over the Green line, the order will Exit.

    Please give infos on how you calculate those lines.

    Grey line is a Trailing line

    Of what price? you are trailing what exactly?

    Green line is the current Gain in “net” (netto) sense. It includes perceived Commission and perceived Spread.

    You can’t get exactly what is the value of it as the broker doesn’t send that information.

    #166713

    I am seeing similar issue – Same code – trade placed at same candle. In live trade it closed partial position, while in running backtest, it did not. As per the code backtest is supposed to be correct, see below code snippet used for partial exit,

    Obviously, I wanted it to exit only if 1 hr candle closes under the hourly supertred. It closed it on spike below supertrend. This should not occur as per the code.

    Here is the real trade (still open with partial exit) and backtest on same spot, same code,

    https://www.evernote.com/l/ApVhHfQ4w9xFwYfJseFy4Rm8Z-_gG2bwZz0/

Viewing 3 posts - 16 through 18 (of 18 total)

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