timeregulation for opening a new opening trade
Forums › ProRealTime English forum › ProOrder support › timeregulation for opening a new opening trade
- This topic has 13 replies, 3 voices, and was last updated 7 years ago by GraHal.
-
-
03/05/2017 at 2:55 PM #27233
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 help1234567891011121314151617// Bedingungen zum Einstieg in Long-Positionen//-------------------------------------------------------------------------defparam cumulateorders=falsedefparam flatbefore=091500defparam flatafter=173000// Bedingungen zum Einstieg in short-Positionenindicator1 = Exponentialaverage [5](close)indicator2 = exponentialaverage[40](close)c1 = (indicator1 CROSSES under indicator2)IF c1 THENsellshort 10 CONTRACT AT MARKetset stop loss 12set target pprofit 403/06/2017 at 3:15 PM #27332Topic 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).
03/06/2017 at 3:21 PM #2733403/06/2017 at 4:26 PM #27344@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 🙂
12345If 'BuyCondition / Sell Condition' AND (BarIndex - TradeIndex > 60) Then'Buy / SellShort' 1 Share at MarketEndif03/06/2017 at 4:32 PM #2734703/06/2017 at 4:34 PM #273481234567891011121314151617// Bedingungen zum Einstieg in Long-Positionen//-------------------------------------------------------------------------defparam cumulateorders=falsedefparam flatbefore=091500defparam flatafter=173000// Bedingungen zum Einstieg in short-Positionenindicator1 = Exponentialaverage [5](close)indicator2 = exponentialaverage[40](close)c1 = (indicator1 CROSSES under indicator2)IF c1 AND (BarIndex - TradeIndex > 60) THENsellshort 10 CONTRACT AT MARKetset stop loss 12set target pprofit 41 user thanked author for this post.
03/06/2017 at 4:51 PM #2735005/31/2017 at 10:32 AM #37102hi 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 %BBif indicator1>75 and indicator2>115 then
sellshort 5 contracts at marketset target pprofit 5
set stopploss 15what would be the exact wording , so that a automatic trading would work , thx to all for the support
05/31/2017 at 10:58 AM #3710905/31/2017 at 11:01 AM #3711005/31/2017 at 11:20 AM #37119You 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??
123456789101112defparam flatbefore=090000defparam flatafter=173000indicator1=RSI [14]indicator2 = ChaikinOsc[3,10](close)if indicator1>75 and indicator2>115 thensellshort 5 contracts at marketENDIFset target pprofit 5set stop ploss 1505/31/2017 at 11:47 AM #37120Yes 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! 🙂
12345678910111213141516defparam flatbefore=090000defparam flatafter=173000indicator1=RSI [14]delta = CLOSE - BOLLINGERDOWNwidth = 4 * STDBBO = delta * 100 / widthif indicator1>75 and BBO>125 thensellshort 5 contracts at marketENDIFset target pprofit 5set stop ploss 1505/31/2017 at 12:31 PM #3712305/31/2017 at 12:49 PM #37131Not 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/
-
AuthorPosts
Find exclusive trading pro-tools on