Rejoindre la communauté
banner_forum
Devenez membre de la plus grande
communauté francophone sur le Forex
Partagez, échangez et apprenez en gagnant des crédits sur votre compte de trading

Indicateur en test pour forex ou binaire!

  • Pickup

    Je ne suis absolument pas pour le binaire mais je viens vous montrer 2 indicateurs qui me semble pas mal pour y pratiquer soit du binaire ou pourquoi pas du trade normal .
    c'est un stoch cross + bands .
    prise de position quand elle dépasse la bands .
    cela peut se faire sur plusieurs périodes .
    c'est un ami qui me la like alors je vous en fait profiter .
    Pickup a joint une image
    test-pour-trading-ou-binaire-10274
  • dd95

    Salut,

    Je vais étudier ta stratégie, et pourquoi pas en faire un EA si les résultats sont intéressant.
    Tu peux donner des détails sur la configuration des indicateurs s'il te plait.

    J'ai 2 questions pour toi : Tu test cette stratégie en OB ou en normal ? Quels sont tes résultats pour le moment?
    Modifié le 2016-05-29 16:08:46 par dd95
  • Pickup

    bonjour dd95 ,
    je ne pratique pas le binaire , c'est juste un ami qui m'avait donner un sujet de sa façons comme tant d'autres pour en faire , pour lui cela fonctionne .
    quand les fléchés sont au dessus ou en dessous de la band il prend position .
    je lui ai demander le code : les voicis .


    Code
    //+------------------------------------------------------------------+ //| stoch cross.mq4 | //| Copyright 2016, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright © 2006, Robert Hill" #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 LawnGreen #property indicator_color2 Red #property indicator_width1 2 #property indicator_width2 2 extern bool SoundON=true; extern bool EmailON=false; //---- input parameters extern int KPeriod=5; extern int DPeriod=3; extern int Slowing=3; extern int MA_Method = 0; // SMA 0, EMA 1, SMMA 2, LWMA 3 extern int PriceField = 0; // Low/High 0, Close/Close 1 double CrossUp[]; double CrossDown[]; int flagval1 = 0; int flagval2 = 0; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0, DRAW_ARROW, EMPTY); SetIndexArrow(0, 233); SetIndexBuffer(0, CrossUp); SetIndexStyle(1, DRAW_ARROW, EMPTY); SetIndexArrow(1, 234); SetIndexBuffer(1, CrossDown); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit, i, counter; double tmp=0; double fastMAnow, slowMAnow, fastMAprevious, slowMAprevious; double Range, AvgRange; int counted_bars=IndicatorCounted(); //---- check for possible errors if(counted_bars<0) return(-1); //---- last counted bar will be recounted if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(i = 1; i <= limit; i++) { counter=i; Range=0; AvgRange=0; for (counter=i ;counter<=i+9;counter++) { AvgRange=AvgRange+MathAbs(High[counter]-Low[counter]); } Range=AvgRange/10; fastMAnow = iStochastic(NULL, 0, KPeriod, DPeriod, Slowing,MA_Method, PriceField, MODE_MAIN, i); fastMAprevious = iStochastic(NULL, 0, KPeriod, DPeriod, Slowing,MA_Method, PriceField, MODE_MAIN, i+1); slowMAnow = iStochastic(NULL, 0, KPeriod, DPeriod, Slowing,MA_Method, PriceField, MODE_SIGNAL, i); slowMAprevious = iStochastic(NULL, 0, KPeriod, DPeriod, Slowing,MA_Method, PriceField, MODE_SIGNAL, i+1); CrossUp[i] = 0; CrossDown[i] = 0; if ((fastMAnow > slowMAnow) && (fastMAprevious < slowMAprevious)) { if (i == 1 && flagval1==0) { flagval1=1; flagval2=0; if (SoundON) Alert("BUY signal at Ask=",Ask,"\n Bid=",Bid,"\n Time=",TimeToStr(CurTime(),TIME_DATE)," ",TimeHour(CurTime()),":",TimeMinute(CurTime()),"\n Symbol=",Symbol()," Period=",Period()); if (EmailON) SendMail("BUY signal alert","BUY signal at Ask="+DoubleToStr(Ask,4)+", Bid="+DoubleToStr(Bid,4)+", Date="+TimeToStr(CurTime(),TIME_DATE)+" "+TimeHour(CurTime())+":"+TimeMinute(CurTime())+" Symbol="+Symbol()+" Period="+Period()); } CrossUp[i] = Low[i] - Range*0.75; } else if ((fastMAnow < slowMAnow) && (fastMAprevious > slowMAprevious)) { if (i == 1 && flagval2==0) { flagval2=1; flagval1=0; if (SoundON) Alert("SELL signal at Ask=",Ask,"\n Bid=",Bid,"\n Date=",TimeToStr(CurTime(),TIME_DATE)," ",TimeHour(CurTime()),":",TimeMinute(CurTime()),"\n Symbol=",Symbol()," Period=",Period()); if (EmailON) SendMail("SELL signal alert","SELL signal at Ask="+DoubleToStr(Ask,4)+", Bid="+DoubleToStr(Bid,4)+", Date="+TimeToStr(CurTime(),TIME_DATE)+" "+TimeHour(CurTime())+":"+TimeMinute(CurTime())+" Symbol="+Symbol()+" Period="+Period()); } CrossDown[i] = High[i] + Range*0.75; } } return(0); }
    Modifié le 2016-05-29 18:55:41 par AliX : [code] [/code]
  • dd95

    Merci pour ta rapidité.

    Je testerai cela dans le courant de la semaine.
  • Pickup

    il manque l'indicateur pour la band , mais cela ne passe pas sur forexagone je vais faire autrement pour te l'envoyé.

    voila ici tu peut le télécharger http://forexblog.biz/forex-indicators/tma-indicator.html
    Modifié le 2016-05-29 18:53:06 par Pickup
  • dd95 — en réponse à Pickup dans son message #105283

    Pickup, le 29/05/2016 dit :
    voila ici tu peut le télécharger http://forexblog.biz/forex-indicators/tma-indicator.html

    Thank you