1 Min Trading Strategy

Viewing 15 posts - 106 through 120 (of 220 total)
  • Author
    Posts
  • #46338 quote
    Despair
    Blocked
    Master

    Strategyprofit gives you the profit of the system so far. The rest should be easy.

    #46834 quote
    rejo007
    Participant
    Senior

    For information, here result of two weeks  in live on the dax

     

    // Code principal : m1 dax
    //————————————————————————-
    //Stategy: Scalping Candles
    //Market: DAX
    //Timeframe: 1min
    //Author: Juan Jacobs (Jd3gjacobs@gmail.com)

     

    SL = 50 // 50
    TP = 55 // 55
    TS = 10 // 10

    Andre Vorster thanked this post
    m1-dax.png m1-dax.png
    #46836 quote
    juanj
    Participant
    Master

    Nice, along with some of my other scalpers I’m actually running adapted versions of this specific strategy on EUR/USD and USD/JPY as well.

    #46838 quote
    rejo007
    Participant
    Senior

    Do you have the version for eurusd and urdjpy with parameter of SL to share?

    #46841 quote
    rejo007
    Participant
    Senior

    And could you tell me what other scalper strategy do you run?

    Thanks

    #47334 quote
    raphaelopilski
    Participant
    Senior

    Hey guys, strategy works quite good. But I would like to give it a function:

    If the first two trades of a day are higher than 0 (or lets better say if they are won), than no trade at this day anymore.

    Why? Because we are only in long direction, and often the third or fourth trade is getting lost, because the dax is correcting. This is in my realtest. So can anybody help me? I tried to do myself but it didn´t work.

    Thanks a lot!

    Bildschirmfoto-2017-09-26-um-09.18.50.png Bildschirmfoto-2017-09-26-um-09.18.50.png
    #47338 quote
    juanj
    Participant
    Master

    I noticed it myself, added a variable called AllowTrade that resets every morning at say 01h00 to = 0

    Then I placed the Buy command in an If statement saying;

    If AllowTrade <= 2 Then

    Buy possize contract at market

    If positionperf(1) > 0 Then

    AllowTrade = AllowTrade + 1

    EndIF

    EndIF

    #47339 quote
    raphaelopilski
    Participant
    Senior

    @juanj

    ok, looks good. but here you only give him 2 trades per day. I want him to stop after 2 won trades. you know what I mean?

    #47342 quote
    juanj
    Participant
    Master

    That is why the condition states positionperf(1) > 0 (only increment the AllowTrade counter for a won condition).

    If you only want to stop trading after two consecutive wins then change the condition to;

    If AllowTrade <= 2 Then

    Buy possize contract at market

    If positionperf(1) > 0 and positionperf(2) > 0 Then

    AllowTrade = 3

    EndIF

    EndIF

    #47344 quote
    raphaelopilski
    Participant
    Senior

    you got your complete code for me?

    #47360 quote
    raphaelopilski
    Participant
    Senior

    If positionperf(1) > 0 and positionperf(2) > 0 is not working, because the system is stopping the complete strategy after winning two trades in a row… maybe I´m on the wrong way. But I don´t know how to reset the counting of winning positions each day.

    #47363 quote
    juanj
    Participant
    Master

    //Just add at the top of your code;

    If hour = 1 Then

    AllowTrade  = 0

    EndIf

    //This will reset the AllowTrade variable every morning

    Then add the If statement I already provided above to increment the AllowTrade variable upon a winning trade.

    #47367 quote
    raphaelopilski
    Participant
    Senior

    not working… sorry. I think it´s because of positionperf(1) > 0 and positionperf(2) > 0

    the system only counts the first two won positions in a row and stops the strategy

    #47369 quote
    raphaelopilski
    Participant
    Senior

    sorry about the circumstances :-/

    #47377 quote
    juanj
    Participant
    Master

    I don’t have access to PRT right now have been trying to code it without looking at the exact way I did it, but I think I remember now;

    This code should fix the issue.

     

    If hour = 1 Then
    
    Trade = 0 //resets the variable every morning
    
    EndIf
    
    If Trade = 0 Then
    
    possize = 1 //the day will always start allowing the first trade
    
    ElsIf Trade >= 2 and positionperf(1) > 0 and positionperf(2) > 0 Then
    
    possize = 0
    
    EndIf

    Then just below the Buy command add the trade counter;

    If countofposition = 0 and Bull = 1 and NearMA[1] > NearMA[3] and RSI[2](close) > 75 and NearMA > Average[150,2](close) Then
    Buy possize contract at market
    Trade = Trade + 1
    EndIf
Viewing 15 posts - 106 through 120 (of 220 total)
  • You must be logged in to reply to this topic.

1 Min Trading Strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
juanj @juanj Participant
Summary

This topic contains 219 replies,
has 29 voices, and was last updated by Leo
8 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/13/2017
Status: Active
Attachments: 65 files
Logo Logo
Loading...