nadasq 5minutes ichimoku
Forums › ProRealTime forum Français › Support ProOrder › nadasq 5minutes ichimoku
- This topic has 3 replies, 2 voices, and was last updated 2 years ago by Marlaynicolas.
-
-
06/13/2022 at 3:46 PM #195221
Bonjour, je vous partage ma stratégie sur le nasdaq 5 minutes.
Basé sur ichimoku et la cloture du prix au dessus.
Je voudrais essayer d’intégrer un time frame supérieur mais je n’arrive pas pouvez vous m’aider s’il vous palit.
exemeple Je voudrais cloturer le trade s’il croise à la baisse le plus bas dans l’unité de temps 1h.
Je vous joint le tableau également des résultats.
Je voudrais éviter d’aller chercher le stop quand le trade descend vraiment beaucoup.
Je voudrais avoir vos avis et quelle solution apporteriez vous pour améliorer.
Dans l’attente de vous lire .
nasdaq 5 minutes123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129// Définition des paramètres du codeDEFPARAM CumulateOrders = false // pas de cumul de positionsDEFPARAM Preloadbars = 50000// Empêche le système de placer des ordres pour entrer sur le marché ou augmenter la taille d'une position avant l'heure spécifiéenoEntryBeforeTime = 153000timeEnterBefore = time >= noEntryBeforeTime// Empêche le système de placer des ordres pour entrer sur le marché ou augmenter la taille d'une position après l'heure spécifiéenoEntryAfterTime = 223000timeEnterAfter = time < noEntryAfterTime// Empêche le système de placer de nouveaux ordres sur les jours de la semaine spécifiésdaysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0// Conditions pour ouvrir une position acheteuseindicator1 = SenkouSpanB[9,26,52]c1 = (close CROSSES OVER indicator1)indicator2 = SenkouSpanA[9,26,52]c2 = (close CROSSES OVER indicator2)IF (c1 AND c2 ) AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENBUY 1 CONTRACT AT MARKETENDIF// Stops et objectifsset stop %loss 2.0set target %profit 1.73IF Not OnMarket THEN//// when NOT OnMarket reset values to default values//TrailStart = 65 //30 Start trailing profits from this pointBasePerCent = 0.000 //20.0% Profit percentage to keep when setting BerakEvenStepSize = 1 //10 Pip chunks to increase PercentagePerCentInc = 0.100 //10.0% PerCent increment after each StepSize chunkBarNumber = 10 //10 Add further % so that trades don't keep running too longBarPerCent = 0.100 //10% Add this additional percentage every BarNumber barsRoundTO = -0.5 //-0.5 rounds always to Lower integer, +0.4 rounds always to Higher integer, 0 defaults PRT behaviourPriceDistance = 7 * pipsize //7 minimun distance from current pricey1 = 0 //reset to 0y2 = 0 //reset to 0ProfitPerCent = BasePerCent //reset to desired default valueTradeBar = BarIndexELSIF LongOnMarket AND close > (TradePrice + (y1 * pipsize)) THEN //LONG positions//// compute the value of the Percentage of profits, if any, to lock in for LONG trades//x1 = (close - tradeprice) / pipsize //convert price to pipsIF x1 >= TrailStart THEN // go ahead only if N+ pipsDiff1 = abs(TrailStart - x1) //difference from current profit and TrailStartChunks1 = max(0,round((Diff1 / StepSize) + RoundTO)) //number of STEPSIZE chunksProfitPerCent = BasePerCent + (BasePerCent * (Chunks1 * PerCentInc)) //compute new size of ProfitPerCent// compute number of bars elapsed and add an additionl percentage// (this percentage is different from PerCentInc, since it's a direct percentage, not a Percentage of BasePerCent)// (if BasePerCent is 20% and this is 10%, the whole percentage will be 30%, not 22%)BarCount = BarIndex - TradeBarIF BarCount MOD BarNumber = 0 THENProfitPerCent = ProfitPerCent + BarPerCentENDIF//ProfitPerCent = max(ProfitPerCent[1],min(100,ProfitPerCent)) //make sure ProfitPerCent doess not exceed 100%y1 = max(x1 * ProfitPerCent, y1) //y1 = % of max profitENDIFELSIF ShortOnMarket AND close < (TradePrice - (y2 * pipsize)) THEN //SHORT positions//// compute the value of the Percentage of profits, if any, to lock in for SHORT trades//x2 = (tradeprice - close) / pipsize //convert price to pipsIF x2 >= TrailStart THEN // go ahead only if N+ pipsDiff2 = abs(TrailStart - x2) //difference from current profit and TrailStartChunks2 = max(0,round((Diff2 / StepSize) + RoundTO)) //number of STEPSIZE chunksProfitPerCent = BasePerCent + (BasePerCent * (Chunks2 * PerCentInc)) //compute new size of ProfitPerCent// compute number of bars elapsed and add an additionl percentage// (this percentage is different from PerCentInc, since it's a direct percentage, not a Percentage of BasePerCent)// (if BasePerCent is 20% and this is 10%, the whole percentage will be 30%, not 22%)BarCount = BarIndex - TradeBarIF BarCount MOD BarNumber = 0 THENProfitPerCent = ProfitPerCent + BarPerCentENDIF//ProfitPerCent = max(ProfitPerCent[1],min(100,ProfitPerCent)) //make sure ProfitPerCent doess not exceed 100%y2 = max(x2 * ProfitPerCent, y2) //y2 = % of max profitENDIFENDIFIF y1 THEN //Place pending STOP order when y1 > 0 (LONG positions)SellPrice = Tradeprice + (y1 * pipsize) //convert pips to price//// check the minimun distance between ExitPrice and current price//IF abs(close - SellPrice) > PriceDistance THEN//// place either a LIMIT or STOP pending order according to current price positioning//IF close >= SellPrice THENSELL AT SellPrice STOPELSESELL AT SellPrice LIMITENDIFELSE////sell AT MARKET when EXITPRICE does not meet the broker's minimun distance from current price//SELL AT MarketENDIFENDIFIF y2 THEN //Place pending STOP order when y2 > 0 (SHORT positions)ExitPrice = Tradeprice - (y2 * pipsize) //convert pips to price//// check the minimun distance between ExitPrice and current price//IF abs(close - ExitPrice) > PriceDistance THEN//// place either a LIMIT or STOP pending order according to current price positioning//IF close <= ExitPrice THENEXITSHORT AT ExitPrice STOPELSEEXITSHORT AT ExitPrice LIMITENDIFELSE////ExitShort AT MARKET when EXITPRICE does not meet the broker's minimun distance from current price//EXITSHORT AT MarketENDIFENDIF06/14/2022 at 9:10 AM #195243exemeple Je voudrais cloturer le trade s’il croise à la baisse le plus bas dans l’unité de temps 1h.
Le plus bas de quoi ? 🙂 Un exemple en image svp, merci !
1 user thanked author for this post.
06/14/2022 at 1:43 PM #195262Bonjour nicolas,
Je voudrais que mon Trade soit clôturer s’il franchi le plus bas sur unité de temps 1h est ce possible de pouvoir le paramétrer (exemple trade ouvert a 11500 le dernier plus bas se situe à 11.380 sur l’unité de temps 1h)
merci
07/11/2022 at 4:52 PM #197144Bonjour nicolas ,
Pourrais tu m’aider s’il te plait. Voila je voudrais intégrer dans ma stratégie nadasq 5min la vente d’une partie de profit quand celui la atteint une somme et laisse filer le trade.
Mais je ne sait pas comment le paramétrer et ou le placer sur ma stratégie?
Je pense que cela va améliorer les gains je voudrais pouvoir faire des tests
J’ai remarqué que souvent il peut arriver a 50 euros de gains et redescend à zéro et remonte pour finir le trade à plus 6 euros ou autres.
Merci à toi en espérant que j’ai pu être clair lol.
-
AuthorPosts
Find exclusive trading pro-tools on