Rewrite SwingTeller code from binck ProTrader to Prorealtime code

Forums ProRealTime English forum ProOrder support Rewrite SwingTeller code from binck ProTrader to Prorealtime code

  • This topic has 66 replies, 6 voices, and was last updated 6 years ago by avatarAVT.
Viewing 15 posts - 1 through 15 (of 67 total)
  • #29755

    Dear Prorealtime members,

    Is there someone who can change this code of a different banksystem (protrader binq) to a prorealtime code.

    I hope someone can help me with this

    #30005

    Seems to be an automated trading system based on RSI with Bollinger Bands, isn’t it?

    This code seems to draw white lines too when signals occurs. So do you want to code it as a ProOrder automatic trading system or an indicator to draw lines when you get signals?

    Is this strategy profitable? Do you use it yourself? Thanks.

    #30027

    Hi,

    Thank you for your response!

    I use it as an indicator combined with some other indicators, but this one is probably the most important and is most of the time accurate.

    I just want the rsi with bollinger I dont mind about the signals.

    Are you able to rewrite it for prorealtime?

    Joerie

    #30072

    Ok, so here are a couple of indicators that may do this job already:

    https://www.prorealcode.com/prorealtime-indicators/traders-dynamic-index-tdi/

    https://www.prorealcode.com/prorealtime-indicators/rsi-self-adjusting-bands/

    Tell me if that suits your query or not, many thanks.

    #30082

    Thats Perfect, Thank you very much!

    One more thing,

    Can you also help me with this indicator (Swingcounter)

    It is a swingcounter that counts a row of green or red candles. I attached a picture to this document. I want it to be exactly like the picture so the numbers need to appear in the graphic chart and not below the chart as an indicator.

     

    #30090

    I remember having already coded something like this before, this is the code:

    But .. it was before the 10.3 release and the ability the draw text on chart, so only the 1st count reset and the 9th count appear. Could you please confirm that the signals given for the 9th count is good? If it’s ok, I’ll try to add text on price chart instead.

     

    #30099

    Heyy,

    Thanks alot. This one doesn’t look good to me.

    Swing +1 starts when a candle closes higher then the 3 candles before.  And the swing -1 starts when the candle closes lower then 3 candles before. When a Fully swing has appeared (Swing 1 -> 9) it stops counting because the 10th candle is called the resting candle. If the 11th candle also closes higher then the 3 candles before the swing starts again at swing 1 (in green colour and red for -1). Also if a swing doesnt succeed in reaching number 9 all the numbers dissapear from the chart. So only the full swings till 9 are and the current swing at the moment is displayed in the graphic. But if the current swing doesnt succeed then it will also dissapear.

    Hope you can understand this a little bit haha

    #30109

    That greatly explained Joerie, lot better then i did 🙂

    I did ask the maker of the swingcounter and it was confirmed it should look back 4 days in stead of 3

    But first of all hope Nicolas can put something together 🙂

    rgds

    John

    #30799

    Another try with this code, hope it’s better. But, the swing counts are not displayed while the actual swing is forming, it will be only displayed if the count is 9 (because we can’t erase what’s already written on chart). If this code is correct, I will change it to make it possible.

     

    #30808

    Hi Nicolas,

    We are getting close 🙂

    First i see there is a digit shown 1.0 etc .. its should only be just 1

    Also i see the count is not staring at the right moment i will send a printscreen where the counter goes wrong

    And yes it should be perfect if the count was shown during the swing and not only when it completes to 9

    rgds

    John

    #30839

    Hi Nicolas,

    Hope the problems are gone now.

    Please let me know

    Did you see the post and attached file?

    rgds

    John

    #30846

    Yes thank you. You can write comments and upload picture here instead! Your malware problem seems gone now, good news!
    I managed the “resting bar”, but I’d like to change the way numbers are displayed to delete the digit and still with variable, instead of writing drawtext 9 times.. I’ll get back with some news later.

    #30865

    Glad to hear that.

    Ive attached a printscreen.

    counter works but but at some points it isnt quite doing what it should

    In this case it jumps from 9.0 to 2.0 on the next bar

    It would also already be a great improvement to show the first bar with the 1 so at least one can see where the swing starts

    Im sure you work something out 🙂

     

    rgds

    John

     

    #30899

    Hi Nicolas ,

    Been looking through a few charts and i find the start of the counter is wrong in many cases

    If a upswing starts the current close must be higher then the close of 4 bars earlier

    For the downswing to start the close of the current day must be lower then 4 days ago

    It must keep counting as long as that is the case. I think you have that working but the starting point often is wrong.

     

    rgds

    John

     

    #30958

    I think this new WIP version should be ok. Because code is read from top to bottom, sometimes counting were wrong, so I stacked the code in another way (my bad sorry).

    About the Close superior or inferior to the one 4 bars earlier, it is not how it is coded in the original code posted by joerie1, it is looking for the current Close to be superior to highest one of the last 3 bars (up swing) and vice versa for the down swing, but I modified as per your suggestion..

Viewing 15 posts - 1 through 15 (of 67 total)

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