only one trade per day on 3 strategies
Forums › ProRealTime English forum › ProRealTime platform support › only one trade per day on 3 strategies
- This topic has 59 replies, 6 voices, and was last updated 7 years ago by Andy11.
-
-
11/30/2016 at 6:48 PM #17602
cosmic, you also made some suggestions on some other strategies which done work for only one execution which dont work.
comments are generell helpfully when i get answers on what i am asking….and not if someone ask me on currcencystuff, when i was asking on dax mini in the 1minute chart.
so if you are able to help on my bollingerrequest for only one execution, than pleaese go for it…..11/30/2016 at 6:54 PM #17604Hey guys, stay calm! and keep trading 🙂
Maybe the instrument you are trying to test never met the 000000 time condition, usually I used intradaybarindex to reset this kind of variable: (Roberto example with this modification)
12345678910111213141516171819// onlu ONE trade per Day//Defparam cumulateorders = falsedefparam flatbefore = 080000defparam flatafter = 173000ONCE OneTrade = 0IF intradaybarindex=0 THENOneTrade = 0ENDIFindicator1 = closeindicator2 = Bollingerdown[20](close)c1 = (indicator1 < indicator2)c2 = (OneTrade = 0)if c1 AND c2 thenbuy 20 contract at marketOneTrade = 1endifset stop ploss 0set target pprofit 1Please test and comment, thank you.
11/30/2016 at 7:44 PM #1761011/30/2016 at 7:58 PM #1761111/30/2016 at 10:58 PM #17629This works for me too as does my suggestion to you, Dreif.
Do you see the logic to copy in my suggestion?
1234567891011121314151617DEFPARAM CumulateOrders = False //defparam flatbefore=080000defparam flatafter=173000Once LastTradeDate = 0// Bedingungen zum Einstieg in Long-Positionenindicator1 = RSI[14](close)c1 = (indicator1 < 20)IF c1 And LastTradeDate<>OpenDate THENBUY 6 CONTRACT AT MARKETLastTradeDate = OpenDateENDIF// Stops und TargetsSET STOP pLOSS 20set target pprofit 51 user thanked author for this post.
12/01/2016 at 8:31 AM #17635cosmic,
I copy that to the bollup strategie …. result : again not working …1234567891011121314151617DEFPARAM CumulateOrders = False //defparam flatbefore=080000defparam flatafter=173000Once LastTradeDate = 0// Bedingungen zum Einstieg in Long-Positionenindicator1 = closeindicator2 = BollingerUp[20](close)c1 = (indicator1 > indicator2)IF c1 And LastTradeDate<>OpenDate THENsellshort 10 CONTRACT AT MARKETLastTradeDate = OpenDateENDIF// Stops und TargetsSET STOP pLOSS 0set target pprofit 112/01/2016 at 12:45 PM #1766312/01/2016 at 1:10 PM #17665Here we go again .. here is the code for bollinger up stuff:
12345678910111213141516171819DEFPARAM CumulateOrders = False //defparam flatbefore=080000defparam flatafter=173000ONCE OneTrade = 0IF intradaybarindex=0 THENOneTrade = 0ENDIF// Bedingungen zum Einstieg in Long-Positionenindicator1 = closeindicator2 = BollingerUp[20](close)c1 = (indicator1 > indicator2)IF c1 And OneTrade=0 THENsellshort 1 CONTRACT AT MARKETOneTrade=1ENDIF// Stops und Targetsset target pprofit 1
This code DO WORK (and the last one too..)
You still haven’t answered to my last question:
What is the instrument tested and the timeframe please? What is your brokerage solution?
Please give details about what you believe it is not working at all? At least screenshot ..! Everyone here is kindly trying to help you, so please have this in mind when you post message! Thanks in advance 🙂
1 user thanked author for this post.
12/03/2016 at 9:14 AM #1774612/03/2016 at 9:54 AM #17748lets finish that , i found anothter way to create ….with the function quit.
probably someone can help on that, …on daxmini, 1minute,
its an one day strategie,…what do i have to add on the code, if the system continious!!!!!! should by 5 contracts at market…so if dema(13)
crosses over dema(38) the system should always 5 contract at market when the crossing takes place123456789101112defparam flatbefore=080000defparam flatafter=173000// Bedingungen zum Einstieg in long-Positionenindicator1 = DEMA[13](close)indicator2 = DEMA[38](close)c1 = (indicator1 CROSSES over indicator2)IF c1 THENbuy 5 CONTRACT AT MARKETENDIF12/03/2016 at 1:38 PM #1775912/04/2016 at 8:51 AM #1777112/04/2016 at 8:54 AM #1777212/05/2016 at 10:06 AM #1779812/05/2016 at 10:45 AM #17808 -
AuthorPosts
Find exclusive trading pro-tools on