AWSM (5,34) on DAX 30 minutes
Forums › ProRealTime English forum › ProOrder support › AWSM (5,34) on DAX 30 minutes
- This topic has 19 replies, 2 voices, and was last updated 6 years ago by dreif123.
-
-
11/23/2017 at 9:12 AM #53692
hi everybody,
i know the code for a AWSM strategy as follows:
// Type histogramme
ChaosAO=Average[5](MedianPrice)-Average[34](MedianPrice)// Chaos Awsome Oscillator Signal Line
ChaosAOSignalLine=Average[5](Average[5](MedianPrice)-Average[34](MedianPrice))i have the following question or what is the code on the following (on dax , 30 minutes )
AWSM is <0
the system should buy if the colour on a balk changes to green ?
thx for any support on that11/24/2017 at 10:37 AM #5381611/24/2017 at 10:59 AM #53822hi Nicolas , thx for your mail…
on the code there is no code, thats correct.
the colour changes are only visible on a chart on the indicator awsm (5,34) …thats why i am asking how a code has to look like
when the colour changes for example from red to green in the negative territorium of the awsm ….if so the system should by 1 contract mini DAX in the 30min chart….with %ploss 0,30%
thx for any support11/27/2017 at 9:08 AM #54069If I don’t apply color myself, I can’t know what is the variable that change color and how? That’s why I asked you to post a picture 🙂
Anyway, color changing are usually made if a variable make a higher high or a lower low ( a u-turn). So for the Chaos Awsome Oscillator Signal Line, it could be code like this:
123456789// Type histogrammeChaosAO=Average[5](MedianPrice)-Average[34](MedianPrice)// Chaos Awsome Oscillator Signal LineChaosAOSignalLine=Average[5](Average[5](MedianPrice)-Average[34](MedianPrice))if ChaosAOSignalLine>ChaosAOSignalLine[1] and ChaosAOSignalLine[1]<ChaosAOSignalLine[2] then// buy or whatever you want here!endifDon’t forget to add the condition about the positive / negative territories which I don’t understand well…
11/27/2017 at 9:15 AM #54071hi Nicolas ,
thx so far …havent found the time to sent a screenshot …try to do this in the late afternoon ..
negative teritorium means if awsm <0....system should buy if awsm <0 and if coulour changes from red to green ...
thx so far11/27/2017 at 9:19 AM #5407311/27/2017 at 10:23 PM #5420312/03/2017 at 10:47 AM #5458912/04/2017 at 9:23 AM #54637ok, so let’s restart it from scratch, I made this little indicator to spot buy signals:
1234567891011121314ChaosAO=Average[5](MedianPrice)-Average[34](MedianPrice)r=255g=0if ChaosAO>ChaosAO[1] thenr=0g=255endifif ChaosAO>ChaosAO[1] and ChaosAO[1]<ChaosAO[2] and ChaosAO<0 thendrawarrowup(barindex,ChaosAO)endifreturn ChaosAO coloured(r,g,0) style(histogram)and this is the adapted code to add into an automated trading strategy code:
12345ChaosAO=Average[5](MedianPrice)-Average[34](MedianPrice)if ChaosAO>ChaosAO[1] and ChaosAO[1]<ChaosAO[2] and ChaosAO<0 thenbuy 1 contract at marketendifThere’s no need of the signal line, only the histogram is important as per your description. Hope it’s ok now 🙂
12/04/2017 at 9:29 AM #54639thx nicolas for your ongoing support … i will check the code this week …i am not the big tecknic freek ….i really have problems in communicate these things …. it took hours to get the chart as an attachement ….and i am not sure if i am able to that for a next time ….. but anyway …big thanks to you
12/04/2017 at 6:53 PM #5471312/05/2017 at 8:04 AM #54741You did not read my post obviously. Please don’t only copy/paste things and try to understand them! :angry:
I made this little indicator to spot buy signals:
So, that would mean that “this is the code of an indicator, use it as an INDICATOR, because this is an INDICATOR, not an AUTOMATED TRADING STRATEGY FOR PROORDER”
and this is the adapted code to add into an automated trading strategy code:
And that sentence should be read as “COPY/PASTE THIS CODE IN A PROORDER WINDOW TO MAKE THINGS HAPPEN! HAPPY CHRISTMAS YA ALL!”
12/05/2017 at 8:29 AM #5474312/05/2017 at 10:45 AM #54763Ok, let’s copy/paste this code into your platform and you’ll be ok:
12345678910defparam cumulateorders=falseChaosAO=Average[5](MedianPrice)-Average[34](MedianPrice)if ChaosAO>ChaosAO[1] and ChaosAO[1]<ChaosAO[2] and ChaosAO<0 thenbuy 1 contract at marketendifset target pprofit 30set stop ploss 30Change the stoploss and takeprofit values as you want.
12/11/2017 at 10:06 PM #55430 -
AuthorPosts