Box dragging stoploss indicator to be made

Forums ProRealTime English forum ProBuilder support Box dragging stoploss indicator to be made

Viewing 7 posts - 1 through 7 (of 7 total)
  • #116211

    Hello programmers. Maybe someone can make this ‘indicator’/stoploss-stopprofit for me?

    The idea is that traders mostly look at round numbers, so there I would like the moving stoploss and (if trade goes well upward for the long) the stopprofit-box below the graph at the long. So it’s a special box-size stoploss.

    I would like to have a “box-dragging-stop-loss”-indicator ((stopprofit if trade goos well)) that I can adjust myself to the ‘box size’ of the graph that I choose. Here an example of the Dow. I take a choosen box size of 200 here and I want automatically to ‘drag it along’ up to the trade along the lines of the graph (see picture) as a moving stoploss/stopprofit. Please also make it optional that you can also separate the long and short trades and the possibility to adjust them independent from each other. Look at the right of the graph, here it correspondents automatically with the ‘hundred-lines’ of the Dow.

    So the idea is then when I use an indicator here as a trigger for a trade, that I can choose as well this dragging-stop-loss below (long) or above (short) but CONNECTED with the fixed lines you see in every graph on the right side of the graph. So if I want to follow the hunderds-lines of the graph that the stoploss follows it upward on the low of the previous bar. (maybe its possible to choose here form the close, open, high, low of the bar as reference? .

    In this example to explain I use the hundreds and the low of the previous bar to set the levels of the stoploss of the long trades. I would like to give in this stoploss in that it should take the ‘hundreds’ (23.100, 23.200. 23.300 etc etc) of the graph of the Dow. It must make a stoploss at the hundred-counts (round numbers). If the close of the bar reach over the second second next hundridline above? The stoploss should automatically move upward a box size.. in this case hundred (100)..

    See added picture what I try to do here..  😉

    Would be wonderfull if it would be possible to adjust the box-sizes as well for the long and the short independent of eachother.  For instance the long at twohundred-box-size below the graph and when I would go short that I can set this as a hundred-box size above the graph

    This “box-dragging-stop-loss (stopprofit)” triggert automatically on the ‘signals’ of an indicator, here for example the MACD.

    Would be wonderfull if it would work intraday, but also end of day.. and on all the graphs.

    Greetings!

    #116275

    Ok, I think that I have understood the whole picture, I will try something. So I will use the MACD histogram that cross above/below the zero line to trigger the start of a long or short order and therefore the start of the moving stoploss line.

    #116278

    Here is a rough first attempt. The stoploss line is inverting only if the MACD signal has changed of direction, so you will see that a lot of time the price broke the line without inverting the stoploss line (not like a Supertrend for instance).

     

    #116327

    Thanks for the very quick response. Now that I see it this way, I think my idea of ​​indicator may be made a lot simpler. There is (as I now see it) actually no “trigger” need to be attached as a ‘MACD’ or something like that. After all, I look for example at those 100-numbers or 200-numbers etc .. that needs no trigger.

    In other words: Is it possible to make a block stop-loss line that, as it were, constantly wraps around the graph from long to short and back again?  Like a sort of snake? Without an extra indicator as a “trigger” ..

    Requirements:

    1. the stoploss uses for reference, for example, the lines of the block 100 numbers or 10 numbers, or 200 numbers, etc., corresponded to the indication on the right-hand side of the graph. Its nice that we can adjust this yourself in the software code (already done) so that is easy. Everybody can type this into the code depending the situation (stock, bond, indices, etc,, and the blocksize number a trader wants for the long and short).
    2. Its great that the blocks are already in the code adjustable for the long and the short independently.

    What would i like to see? Eventually I would like to see a kind of “continuous stoploss-‘snake’-block indicator” .. without attachments with any indicator

    See picture attached.

    Long (blue block line, below the graph):

    –              Stoploss runs to the hundreds below the graph (in blue)

    –              Should the slot of the newest bar fall below the blue stop-loss line (in for example hundreds) of the long, that at the opening of the next bar the short trade is opened immediately and the stop loss is added (for example to the hundred) above the graph is (but in red) ..

    Short (red block line, above the graph):

    • Should the end of the bar of the graph close above the hundreds of the red stoploss line of the short? Then immediately return to the position long at the opening of the next bar, and the stop loss again to the hundreds below.

    Many many thanks!

    #116385

    Try this one:

     

    #116399

    Hi Nicolas,

    Thanks for all the help. The power of trading is symplicity that can not be over-optimized. In this code is still an MACD. Is it possible for you to make the indicator of the dragging stoploss without making use of any trigger? as well NOT of the Macd?

    Just a “simple” 😉  continious ‘traling stoploss line’ here.  Where i can continuously can place like ‘200 points’ (using the hundreds lines on the right side of the graph still) stoploss below the close of the graphic bar (when it goes upward) . And when the LOW of a bar breaks eventually sometime upworth this blue stoplossline that the ‘short red line’  will start;  and automatically makes a roundturn on lets say ‘100’ points red stoploss line Above the next bar …

    This short stoploss line (red) continiuous follows the graph downworth… until it turneds upworth again and breaks this red stoploss line that was above the graph, and it hits with the HIGH of a bar above this red line. After that it must be going again to a longtrade of ‘200 points’ line below etc.  and so on. The long and the short different in points from another.

    Greetings,

     

    #116400

    In this code is still an MACD.

    There is no use of the MACD in Nicolas’ last code.

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

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