Perfect Trend Indicator with automatic trading

Forums ProRealTime English forum ProOrder support Perfect Trend Indicator with automatic trading

Viewing 15 posts - 1 through 15 (of 18 total)
  • #50722

    Hi Nicolas, in order of your recommendation I´m writing here what I need to do for using your Perfect Trend indicator as an automatic trader. First of all, I want to operate in DAX Full Future in 1 minute, and I´ve made a list of paramethers that I wish it would have, for example:

    1. Open only longs
    2. Open longs when the blue dot gets on
    3. Limit: 5 points
    4. Stop: 5 points
    5. Close the operation if a red dot gets on
    6. Get a minimum of 20 points daily and a máximum of 24
    7. Maximum of operations daily: 150
    8. Schedule: From 8:00 to 17:00

    Thank you very much.

    Eduardo Siverio

    1 user thanked author for this post.
    #50725

    When you speak English, it is obvious to open a thread in the English forum .. just saying it ..

    This is the code of the strategy you asked for. I omit the MaxDaily profit which I don’t think it is useful in this case, make your own tests and tell us how it goes..

     

    #50742

    Muchas gracias Nicolas y mil disculpas por lo del inglés, desconocía que estaba en el foro en español.

    Una pregunta, me aparece un error de sintaxis en la fila 5, qué debo hacer para corregirlo?

     

    Gracias

    1 user thanked author for this post.
    #50750

    The topic is now in the English forum, do not speak Spanish please. There is no syntax error in the code, please copy/paste it once more.

    #50782

    Sorry for the spanish.

    I´m attaching the error the system gives me, I´ve tryed several times copying and pasteing the program but I can´t validate it. Also I´ve erased the symbol that is giving me the “error” and the thing became worse. When I downloaded your Perfect trend indicator was from an ITF file, I don´t know if it´s posible to have this code like an ITF file too to import it directly and avoid the copy/paste. Please excuse my ignorance in this subject.

     

    Thank you

     

    Eduardo Siverio

    #50784

    Totally odd, what is the “symbol” you erased that give you the error? There is no character at line 5!

    Please try to delete the “añadir” variable that still exist (certainly from a previous code) in the optimisation settings.. Variable name can’t have accent, this is what may cause the problem here.

    #50787

    Well, I can´t see the symbol, but the space is being occuped by a ” ” (I´ve copied and pasted it, is between question marks), and it appears in lines 5, 13, 18, 31, 44, 53, 58 and 69 too. I erased everything and paste only the code, but it remains the “sintaxis error”. In the attachment you can see what it looks like.

    #50790

    I think the way you copy/paste code from here is wrong. Are you on PC or MAC or LINUX? What is your web browser?

    Please find below the instructions on how to copy/paste code from this website.

    #50793

    Got it!

    Thank you, on monday i`ll try it in demo.

     

    #51398

    Hi Nicolas,

    I adjusted the limit and the stop in the backtest, I put Limit 6 and stop 8. The result in a walk forward was terrible. My idea was to earn 50 points per week, and between monday and wednesday I earned 28.5 points (not bad) but between thursday and friday I lost 51 points. The result is -22.5/week. My idea doesn´t works. So, If you have some recomendation to improve the code (or another code) I´ll be glad to read about it. Thank you for your time.

     

    Eduardo

    #51427

    Why not backtesting it and try to improve the strategy? Testing a strategy only during one week should not guarantee if it is worth nothing (or if it’s worth one million dollars too .. ).

    #51432

    thank you again, I´ll try to improve it.

    #51554

    Hi Nicolas,

    It´s posible to add a maximum daily loss to the code and a trailing stop of 1 point that activates when the value gets the target profit?

     

    Thank you

     

    Eduardo

    #51559

    A trailing stop of “only” 1 point should not work, it depends mainly of the allowed stop distance from price from your broker (and it’s different for every single security).

    About a daily loss trigger, you have something already available in this blog post: https://www.prorealcode.com/blog/learning/max-profit-loss-day-trading-strategy/

    #51569

    thank you Nicolas

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

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