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
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).
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 …..
@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
ok Grahal ,
in which row do I have to put that on
// 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
thx Grahal for your quick support
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
Brain slow this morning 🙂 … remind me please, what is %BB?
no prob , Bollinger Band Oszilator
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
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
thx grahal , just for me to understand
what does that mean …” width=4*std ” and BB0=delta*100/ width
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/