BE évolutif à chaque bougie
Forums › ProRealTime forum Français › Support ProOrder › BE évolutif à chaque bougie
- This topic has 4 replies, 2 voices, and was last updated 2 years ago by overspin. 
- 
	
		
- 
		
			
				
11/10/2022 at 5:49 PM #203955bonjour, j’utilise une mise à BE qui fonctionne parfaitement mais je souhaiterais qu’une fois cette mise à BE s’effectue une évolution du stop se produise chaque fois qu’une bougie se clôture du style à chaque bougie remonter le stop d’un point , et ce tant pour les long que les short, pouvez vous m’aider car mes différents essais se soldent par un échec voici le code du BE 1234567891011121314151617181920//Unité pour le BEtimeframe(15 minute,updateonclose)startBreakeven = 50 //distance d'activationPointsToKeep = 2 //distance au dessus de l'entrée (Long)//resetIF NOT ONMARKET THENbreakevenLevel=0ENDIFIF LONGONMARKET AND close-tradeprice(1)>=startBreakeven*pipsize THENbreakevenLevel = tradeprice(1)+PointsToKeep*pipsizeELSIF SHORTONMARKET AND tradeprice(1)-close>=startBreakeven*pipsize THENbreakevenLevel = tradeprice(1)-PointsToKeep*pipsizeENDIFIF breakevenLevel>0 THENSELL AT breakevenLevel STOPEXITSHORT AT breakevenLevel STOPENDIF11/26/2022 at 5:04 PM #204856Bonjour, Personne n’a donc d’idée pour que mon BE devienne stop suiveur après son déclenchement remonte d’un point a chaque bougie ? Merci TRANSLATE withx EnglishTRANSLATE withEnable collaborative features and customize widget: Bing Webmaster Portal11/26/2022 at 5:43 PM #2048591234567891011121314151617TGL0 = 65IF not onmarket THENMAXPRICE = 0PRICEXIT = 0ENDIFIF longonmarket THENMAXPRICE = MAX(MAXPRICE,close)IF MAXPRICE - tradeprice(1) >= TGL0 * pointsize THENPRICEXIT = MAXPRICE - TGL0 * pointsizeENDIFENDIFIF onmarket and PRICEXIT>0 THENSELL at PRICEXIT STOPENDIFhello ! dans TGL c’est la valeur d’écart entre le prix et le BE, se met a jour a chaque clôture 15min si ton bot fonctionne en 15min 11/26/2022 at 5:45 PM #2048601234567891011121314151617TGS0 = 64IF not onmarket THENMINPRICE = closePRICEEXIT = 0ENDIFIF shortonmarket thenMINPRICE = MIN(MINPRICE,close)IF tradeprice(1) - MINPRICE >= TGS0 * pointsize THENPRICEEXIT = MINPRICE + TGS0 * pointsizeENDIFENDIFIF onmarket and PRICEEXIT > 0 THENEXITSHORT AT PRICEEXIT STOPENDIFet pour les short 1 user thanked author for this post.12/13/2022 at 5:09 PM #205722Merci Ezel,après test cela marche parfaitement TRANSLATE withx EnglishTRANSLATE withEnable collaborative features and customize widget: Bing Webmaster Portal1 user thanked author for this post.
- 
		AuthorPosts
			Find exclusive trading pro-tools on 

 
 
 
		 
		 
		