timeregulation for opening a new opening trade

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #27233 quote
    dreif123
    Participant
    Average

    hi nicolas,
    you are for me the master of all strategies and it would be great to get support from you.
    on the strategy below there are normally a couple of opening and closing trades on a daily basis.
    what do i have to add on the automatic trading system if i like to have a second openig trade after one hour after the first opening trade ( etc etc … so a third opening trade should early take place after one hour after the second opening trade etc etc)……all on dax , dax mini, 1 minute…
    thx for your help

    // Bedingungen zum Einstieg in Long-Positionen
    //-------------------------------------------------------------------------
    defparam cumulateorders=false
    defparam flatbefore=091500
    defparam flatafter=173000
    
    // Bedingungen zum Einstieg in short-Positionen
    indicator1 = Exponentialaverage [5](close)
    indicator2 = exponentialaverage[40](close)
    
    c1 = (indicator1 CROSSES under indicator2)
    
    IF c1 THEN
    sellshort 10 CONTRACT AT MARKet
    
    set stop loss 12
    set target pprofit 4
    #27332 quote
    Nicolas
    Keymaster
    Master

    Topic moved to ProOrder Support in English forum (since you wrote it in English). Automatic trading support goes to ProOrder, not ProBuilder FYI. Thanks.

    Because code is only read once at the end of each bar, you cannot operate between 2 “Close”. So if you are trading this strategy on a daily basis, you can’t launch a new trade each new hour.

    But, it will be possible as soon as multitimeframe support will be available (next PRT major update coming this year).

    #27334 quote
    dreif123
    Participant
    Average

    thx first of all …just to clarify …. between the first opening trade and the second opening trade there should be a minimum of one hour …..

    #27344 quote
    GraHal
    Participant
    Master

    @dreif you say  … all on dax , dax mini, 1 minute… so if you are trading on 1 minute timeframe (?) then you need 60 bars to go by using below … ‘GraHal code’ … you tidy it up 🙂

    If 'BuyCondition / Sell Condition' AND (BarIndex - TradeIndex > 60) Then
    
    'Buy / SellShort' 1 Share at Market
    
    Endif
    #27347 quote
    dreif123
    Participant
    Average

    ok Grahal ,
    in which row do I have to put that on

    #27348 quote
    GraHal
    Participant
    Master
    // Bedingungen zum Einstieg in Long-Positionen
    //-------------------------------------------------------------------------
    defparam cumulateorders=false
    defparam flatbefore=091500
    defparam flatafter=173000
    
    // Bedingungen zum Einstieg in short-Positionen
    indicator1 = Exponentialaverage [5](close)
    indicator2 = exponentialaverage[40](close)
    
    c1 = (indicator1 CROSSES under indicator2)
    
    IF c1 AND (BarIndex - TradeIndex > 60) THEN
    sellshort 10 CONTRACT AT MARKet
    
    set stop loss 12
    set target pprofit 4
    Nicolas thanked this post
    #27350 quote
    dreif123
    Participant
    Average

    thx Grahal for your quick support

    GraHal thanked this post
    #37102 quote
    dreif123
    Participant
    Average

    hi everybody, i would like to do an automatic trading on the following … i have done these trades manuell and i was succesfull on that , its on DAX mini , 1 minute chart, with two indicators RSI [14] and %BB
    defparam flatbefore=090000
    defparam flatafter=173000
    indicator1=RSI [14]
    indicator2 should be %BB

    if indicator1>75 and indicator2>115 then
    sellshort 5 contracts at market

    set target pprofit 5
    set stopploss 15

    what would be the exact wording , so that a automatic trading would work , thx to all for the support

    #37109 quote
    GraHal
    Participant
    Master

    Brain slow this morning 🙂 … remind me please, what is %BB?

    #37110 quote
    dreif123
    Participant
    Average

    no prob , Bollinger Band Oszilator

    #37119 quote
    GraHal
    Participant
    Master

    You had it, but you need an exit condition to make a workable Strategy.

    Also Boll Band Osc appears to not be available from the Pro Builder Function list (but BB Osc is a default PRT Indicator) so I used the Chaiken Osc just to get ‘something on paper’.

    I’ll see if BB Osc is on this site??

    defparam flatbefore=090000
    defparam flatafter=173000
    
    indicator1=RSI [14]
    indicator2 = ChaikinOsc[3,10](close)
    
    if indicator1>75 and indicator2>115 then
    sellshort 5 contracts at market
    ENDIF
    
    set target pprofit 5
    set stop ploss 15
    
    
    #37120 quote
    GraHal
    Participant
    Master

    Yes BB Osc is on here so code below uses it, but needs tidying?

    Ignore my comment above re exit conditions … I was doing this and also at same time facebook answering my daughter re DIY  jobs on her house … just noticed the Target Profit etc! 🙂

    defparam flatbefore=090000
    defparam flatafter=173000
    
    indicator1=RSI [14]
    delta = CLOSE - BOLLINGERDOWN
    width = 4 * STD
     
    BBO = delta * 100 / width
     
    
    if indicator1>75 and BBO>125 then
    sellshort 5 contracts at market
    ENDIF
    
    set target pprofit 5
    set stop ploss 15
    
    #37123 quote
    dreif123
    Participant
    Average

    thx grahal , just for me to understand
    what does that mean …” width=4*std ” and BB0=delta*100/ width

    #37131 quote
    GraHal
    Participant
    Master

    Not sure without thinking about it a lot! 🙂

    Somebody else has asked the same / similar question on the Topic for the Indicator below. If you ask again on there then probably Nicloas will see it and answer?

    https://www.prorealcode.com/prorealtime-indicators/b-bollinger/

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.

timeregulation for opening a new opening trade


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
dreif123 @dreif123 Participant
Summary

This topic contains 13 replies,
has 3 voices, and was last updated by GraHal
8 years, 9 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/05/2017
Status: Active
Attachments: No files
Logo Logo
Loading...