You are not logged in.


Index » Automated trading system (Expert Advisors) » 

Tribuforex Expert Advisor


Pages: 1 2 Next

#1 ⇑ Haut ⇑ 08-12-2010 13:23:45

Vincent
Trader, Analyst and webmaster for Forex-Tribe
Forex
Registered: 16-07-2008
Posts: 39318
Reputation :   
Website
Rate this member :
  • Currently 2.73/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.7/5 (295 votes)


Share this topic :

Tribuforex Expert Advisor

You can now test our Expert Advisor: Download Tribuforex Expert Advisor

Don't hesitate to reply on this topic if you have any questions or need more informations.




signature forex
 

#2 ⇑ Haut ⇑ 17-01-2011 11:43:08

Gayl
Member
Pas d'avatar
Registered: 14-01-2011
Posts: 4
Reputation :   
Rate this member :
  • Currently 2.30/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.3/5 (50 votes)


Share this topic :

Re: Tribuforex Expert Advisor

What did it really do ?
I think instead of using softwares forums are a good way of gathering information to a specific topic .




signature forex
Some people develop a wish bone where their back bone should be.
 

#3 ⇑ Haut ⇑ 18-01-2011 00:35:55

Bruno
Trader, Analyst and webmaster for Forex-Tribe
Forex
Registered: 07-12-2008
Posts: 30891
Reputation :   
Website
Rate this member :
  • Currently 2.66/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.7/5 (286 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Hi,

This EA takes position according to the SuperTrend (which is a trend indicator). When, the supertrend is long, the ea takes a long position and when the supertrend is short, it take a short position and so on.

You can configure the EA and the timeframe you want.




signature forex
 

#4 ⇑ Haut ⇑ 24-01-2012 18:43:08

davefransman
Member
Pas d'avatar
Registered: 24-01-2012
Posts: 1
Reputation :   
Rate this member :
  • Currently 2.34/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.3/5 (38 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Hi Bruno, i me Dave and like your TribuForex V1.2 EA.

Is the EA for sale? And if so, is it posible to ad a trailing stop on price, and trailing step?


Let me know,
Greetings Dave




 

#5 ⇑ Haut ⇑ 01-10-2012 20:54:58

eatrader
Member
Pas d'avatar
Registered: 01-10-2012
Posts: 3
Reputation :   
Rate this member :
  • Currently 2.18/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.2/5 (34 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Hello,
what if the generated Passwort isn't accepted by the EA?
Im Using Version 1.2
Please reply




 

#6 ⇑ Haut ⇑ 01-10-2012 23:45:46

cebac
Active Member
Pas d'avatar
Registered: 01-10-2012
Posts: 6
Reputation :   
Rate this member :
  • Currently 2.53/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.5/5 (38 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Hello Forextribe,

I am very interested in your SUPTERTREND-EA and testing it right now.
Is there the possibility to change the indicator's multiplier from 3 to 5 (or even better 5.3)?
I have seen that it can be changed but the EA continues to work with value 3.

Thanks in advance for your help.

Regards
Carlos




 

#7 ⇑ Haut ⇑ 02-10-2012 00:13:18

force199
Member
Pas d'avatar
Registered: 01-10-2012
Posts: 1
Reputation :   
Rate this member :
  • Currently 2.11/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.1/5 (38 votes)


Share this topic :

Re: Tribuforex Expert Advisor

I keep getting this error message. What does it mean?

AUDNZD : Erreur survenue ==> (130)  no error SellStop @ 1 Stop 1

Also, What are best currencies for this EA?

Thanks




 

#8 ⇑ Haut ⇑ 02-10-2012 08:55:11

Vincent
Trader, Analyst and webmaster for Forex-Tribe
Forex
Registered: 16-07-2008
Posts: 39318
Reputation :   
Website
Rate this member :
  • Currently 2.73/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.7/5 (295 votes)


Share this topic :

Re: Tribuforex Expert Advisor

eatrader wrote:
what if the generated Passwort isn't accepted by the EA?
Im Using Version 1.2

Hello eatrader, you are probably using it on your live account.
So the password is different.
You can generate a live account password using the 2nd iframe here : http://www.tribuforex.fr/Experts-Adviso … uforex.php

cebac wrote:
I have seen that it can be changed but the EA continues to work with value 3.

The EA works directly on the chart. So, you also need to change this parameter on the Super Trend indicator installed on chart.

force199 wrote:
AUDNZD : Erreur survenue ==> (130)  no error SellStop @ 1 Stop 1

The EA can't place the sell order order. Probably cause the parameter fixed for Stop is to loss. Try a higher value.




signature forex
 

#9 ⇑ Haut ⇑ 04-10-2012 13:43:27

eatrader
Member
Pas d'avatar
Registered: 01-10-2012
Posts: 3
Reputation :   
Rate this member :
  • Currently 2.18/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.2/5 (34 votes)


Share this topic :

Re: Tribuforex Expert Advisor

@vincent
thx for your quick reply:

I tried out your suggestion but it does still not work.
Im using a demo account .
Do i need a special Metatrader? Im Using MT4, there are several names, like active traders etc...do i need a special one?
In both cases, demo and real account, the password doesnt work...i cannot enter the last number of it.
Can you please help me?




 

#10 ⇑ Haut ⇑ 05-10-2012 00:19:14

Vincent
Trader, Analyst and webmaster for Forex-Tribe
Forex
Registered: 16-07-2008
Posts: 39318
Reputation :   
Website
Rate this member :
  • Currently 2.73/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.7/5 (295 votes)


Share this topic :

Re: Tribuforex Expert Advisor

So, please try the following version of the EA.
(The problem comes from the password. Your trading account number is too long... the password generated can't be indicated without missing a number...)

So, it doesn't matter if it's a demo or a live account. For the password, the only thing you have a enter is your trading account number +1

As exemple :  account number is 5555556 -> the password is 5555557

Waiting for your reply.
(i hope it will work)

NB: Don't forget to add the Super Trend indicator on the chart before adding the EA.

Vincent.



Attachments:
Attachment Icon TribuForex_V1_11.ex4, Size: 30,908 bytes, Downloads: 1

signature forex
 

#11 ⇑ Haut ⇑ 05-10-2012 08:20:20

eatrader
Member
Pas d'avatar
Registered: 01-10-2012
Posts: 3
Reputation :   
Rate this member :
  • Currently 2.18/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.2/5 (34 votes)


Share this topic :

Re: Tribuforex Expert Advisor

It stands: i do not have the permission to open this file...

can you send it by mail?




 

#12 ⇑ Haut ⇑ 21-11-2012 11:59:21

Theras2000
Member
Pas d'avatar
Registered: 21-11-2012
Posts: 1
Reputation :   
Rate this member :
  • Currently 1.94/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 1.9/5 (34 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Hello,
Can I run a backtest of this EA on any MT4. (ie demo MT4 with another broker)
I cannot seem to get the EA to work! It seems to accept the passcode but after running the backtest the report shows no trades taken.
My account no. is 6 digits and I am using the TribuForex V1.2 etc EA with a 7 digit passcode generated from your website.

Any help would be appreciated




 

#13 ⇑ Haut ⇑ 15-12-2012 00:22:51

cebac
Active Member
Pas d'avatar
Registered: 01-10-2012
Posts: 6
Reputation :   
Rate this member :
  • Currently 2.53/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.5/5 (38 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Hello Vincent,

I already changed the multiplier inside the SuperTrend indicator but EA does always go on with the standard value of 3.
What can I do?

Kind regards
Cebac




 

#14 ⇑ Haut ⇑ 16-12-2012 20:23:42

Vincent
Trader, Analyst and webmaster for Forex-Tribe
Forex
Registered: 16-07-2008
Posts: 39318
Reputation :   
Website
Rate this member :
  • Currently 2.73/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.7/5 (295 votes)


Share this topic :

Re: Tribuforex Expert Advisor

I already changed the multiplier inside the SuperTrend indicator but EA does always go on with the standard value of 3.

You have to change this parameter on the EA AND on the indicator (added on the chart)




signature forex
 

#15 ⇑ Haut ⇑ 16-12-2012 21:28:06

cebac
Active Member
Pas d'avatar
Registered: 01-10-2012
Posts: 6
Reputation :   
Rate this member :
  • Currently 2.53/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.5/5 (38 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Hello Vincent,

where in the EA can I change this parameter?

Regards
Carlos




 

#16 ⇑ Haut ⇑ 17-12-2012 09:06:06

Vincent
Trader, Analyst and webmaster for Forex-Tribe
Forex
Registered: 16-07-2008
Posts: 39318
Reputation :   
Website
Rate this member :
  • Currently 2.73/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.7/5 (295 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Hello Carlos,

The SuperTrend indicator ex4 have to be used with the EA.
On the zipped file, there are 2 files (Super Treend Indicator and the ForexTribe EA).
Install both on your trading platform.
Then, add first the surper trend indicator on your chart.
Configure it as wanted.

Then, add the EA -> It will work using the SuperTrend indicator previously added on the chart.

(So, SuperTrend parameters can be changed with the indicator (not direct with the EA).
On the EA parameters, you will only be able to change the stop to reverse spread, adn else...




signature forex
 

#17 ⇑ Haut ⇑ 20-12-2012 00:06:31

cebac
Active Member
Pas d'avatar
Registered: 01-10-2012
Posts: 6
Reputation :   
Rate this member :
  • Currently 2.53/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.5/5 (38 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Hello Vincent,

I tried exactly what you said but it does not work. EA definitely works always with multiplier 3.
Do you have any further proposal for me?
Could it be that the EA und indicator for download are not the latest versions and that you have newer ones working exactly how you say?

Regards
Carlos




 

#18 ⇑ Haut ⇑ 20-12-2012 00:41:20

Vincent
Trader, Analyst and webmaster for Forex-Tribe
Forex
Registered: 16-07-2008
Posts: 39318
Reputation :   
Website
Rate this member :
  • Currently 2.73/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.7/5 (295 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Hello Carlos,

With the Tribuforex EA, i don't remember how to change the Super Trend parameters. It been a long time... And we are not anymore in touch with the developer.

But, you can have exactly the same EA using the ForexTribe Multi-Indicators (EA version), here: http://www.forex-tribe.com/EA-Multi-Ind … -Tribe.php
(It's FREE)

NB: The Indicator version will only send signals on your chart. The EA buy on "buy-signal" / Sell on "sell-signal" / Close the openned position on "neutral-signal".

It looks hard to adjust the parameters, but not, it's really simple.

If you only want to use the Super Trend :

At the end of the parameters list, only let "useSuperTrend" on "True"

http://www.forex-tribe.com/autres/multi-indicateurs/selection-indicateurs.png


And just above these parameter, configure the SuperTrend as wanted:

http://www.forex-tribe.com/autres/multi-indicateurs/supertrend.png


And after, you can also add the superTrend indicator on your chart if you don't want to only have signals...

Don't hesitate to come back to me if needed.

Best regards,
Vincent.




signature forex
 

#19 ⇑ Haut ⇑ 20-12-2012 00:55:23

Vincent
Trader, Analyst and webmaster for Forex-Tribe
Forex
Registered: 16-07-2008
Posts: 39318
Reputation :   
Website
Rate this member :
  • Currently 2.73/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.7/5 (295 votes)


Share this topic :

Re: Tribuforex Expert Advisor

An other solution:

As i told you, we are not anymore in touch with the developper but we have the code MQ4 of this EA.

Here is the full code of the SuperTrend EA:

Code:

/*
   Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
   Website: http://purebeam.biz
   E-mail : purebeam@gmail.com
*/
#property copyright "Copyright © 2009, TribuForex"
#property link      ""

extern string _____Paramètres_Principaux_____ = "_____TribuForex V1.1_____";
extern int TakeProfit = 0;
extern double Lots = 0.1;
extern int Stop = 15;
extern int StopSecours = 30;
extern bool OrderStopOnly = FALSE;
extern string __Heures_début_et_fin_trading__ = " ";
extern int HeureDeb = 0;
extern int MinutDeb = 0;
extern int HeureFin = 23;
extern int MinutFin = 59;
extern string ___Cloture_en_fin_de_trading___ = " ";
extern bool CloseEndDay = FALSE;
extern string ___Retournement_de_tendance____ = " ";
extern bool CloseReverse = FALSE;
extern string ___Gestion_multi_timeframes____ = " ";
extern bool TimeFrame = FALSE;
extern string ________Password_usage_EA______ = "A préciser une seule fois par plateforme ";
extern int Password = 0;
int g_color_180 = Yellow;
int g_color_184 = Lime;
int gi_unused_188 = 36095;
int gi_unused_192 = 8388352;
string gs_196 = "TribuForex V1.1";
int gi_204 = 99900000;
int g_magic_208;
int g_slippage_212;
int g_digits_216;
int gi_220;
double g_minlot_224;
bool gi_232;
double g_icustom_236;
double g_icustom_244;
double g_icustom_252;
double g_icustom_260;
double g_icustom_268;
double g_icustom_276;
int gi_284 = 3;
string gs_288;
int g_pos_296;
string gs_308;
int gi_316 = 0;
bool gi_320 = FALSE;
int g_count_324 = 0;

int init() {
   int li_0;
   int l_global_var_4;
   int li_8;
   int l_global_var_12;
   Print("LotSize : ", MarketInfo(Symbol(), MODE_LOTSIZE));
   g_minlot_224 = MarketInfo(Symbol(), MODE_MINLOT);
   Print("MinLot : ", MarketInfo(Symbol(), MODE_MINLOT));
   Print("LotStep : ", MarketInfo(Symbol(), MODE_LOTSTEP));
   Print("MaxLot : ", MarketInfo(Symbol(), MODE_MAXLOT));
   Print("Digit : ", MarketInfo(Symbol(), MODE_DIGITS));
   if (!IsDemo()) {
      li_0 = 7 * (AccountNumber() + 597) - 1343;
      if (li_0 > D'09.09.2001 03:46:39') li_0 /= 100;
      l_global_var_4 = GlobalVariableGet("TribuForex SuperTrend");
      if (Password == 0 && l_global_var_4 == 0) {
         Comment("Indiquez votre mot de passe dans les paramètres de l EA pour continuer. Merci");
         return (0);
      }
      if (li_0 != Password && li_0 != l_global_var_4) {
         Alert("Mot de passe incorrect, EA suspendu! - contacter TribuForex");
         return (0);
      }
      GlobalVariableSet("TribuForex SuperTrend", li_0);
      Comment("Autorisation EA : OK");
   }
   if (IsDemo()) {
      li_8 = 1 * (AccountNumber()) - 48249680;
      if (li_8 > D'09.09.2001 03:46:39') li_8 /= 100;
      l_global_var_12 = GlobalVariableGet("TribuForex SuperTrend Demo");
      if (Password == 0 && l_global_var_12 == 0) {
         Comment("Indiquez votre mot de passe dans les paramètres de l EA pour continuer. Merci");
         return (0);
      }
      if (li_8 != Password && li_8 != l_global_var_12) {
         Alert("Mot de passe Demo incorrect, EA suspendu! - contacter TribuForex");
         return (0);
      }
      GlobalVariableSet("TribuForex SuperTrend Demo", li_8);
      Comment("Autorisation EA en Demo: OK");
   }
   if (Stop < 5) {
      Comment("Le paramètre Stop ne peut être inférieur à 5. Merci de le changer !");
      return (0);
   }
   if (HeureFin < HeureDeb || (HeureFin == HeureDeb && MinutFin < MinutDeb)) Comment("Heure/Minute de fin incorrects. Merci de les modifier");
   g_slippage_212 = 2.0 * MarketInfo(Symbol(), MODE_SPREAD);
   gi_220 = MarketInfo(Symbol(), MODE_STOPLEVEL) + MarketInfo(Symbol(), MODE_SPREAD);
   g_digits_216 = MarketInfo(Symbol(), MODE_DIGITS);
   if (g_digits_216 == 5 || g_digits_216 == 3) {
      if (TakeProfit < 100 && TakeProfit > 0) TakeProfit = 10 * TakeProfit;
      if (Stop < 100 && Stop > 0) Stop = 10 * Stop;
      if (StopSecours < 100 && StopSecours > 0) StopSecours = 10 * StopSecours;
   }
   if (g_digits_216 < 5) gi_232 = TRUE;
   if (StopSecours < gi_220 && StopSecours > 0) StopSecours = gi_220;
   if (TakeProfit < gi_220 && TakeProfit > 0) TakeProfit = gi_220;
   if (Lots < g_minlot_224) {
      Lots = g_minlot_224;
      Comment("Le lot est ramené à la valeur minimale autorisée : ", g_minlot_224);
   }
   g_count_324 = 0;
   g_magic_208 = gi_204 + Period();
   Print("MagicNumber :    ", DoubleToStr(g_magic_208, 0));
   return (0);
}

int start() {
   if (Bars < 100) {
      Print("Moins de 100 bougies !");
      return (0);
   }
   if (Stop < 0) {
      Comment("Changez la valeur du paramètre Stop: il ne peut être négatif");
      return (0);
   }
   if (HeureFin < HeureDeb || (HeureFin == HeureDeb && MinutFin < MinutDeb)) Comment("Heure/Minute de fin incorrects");
   if (!IsExpertEnabled()) {
      Comment("Expert ", gs_196, " non autorisé actuellement !");
      gi_320 = TRUE;
      return (-1);
   }
   if (!IsTradeAllowed()) {
      Comment("Trading non autorisé !");
      gi_320 = TRUE;
      return (-1);
   }
   if (IsTradeContextBusy()) {
      Comment("Contexte saturé, pas de trading !");
      gi_320 = TRUE;
      return (-1);
   }
   if (!IsConnected()) {
      Comment("Pas de connexion !");
      gi_320 = TRUE;
      return (-1);
   }
   if (IsStopped()) {
      Comment("EA arrêté...");
      gi_320 = TRUE;
      return (-1);
   }
   if (gi_320) {
      Comment("Trading autorisé depuis " + TimeToStr(TimeCurrent(), TIME_MINUTES));
      gi_320 = FALSE;
   }
   VerifFinTrading();
   if (gi_316 == Time[0]) return (0);
   gi_316 = Time[0];
   Print("MagicNumber :    ", DoubleToStr(g_magic_208, 0));
   g_icustom_236 = 0;
   g_icustom_260 = 0;
   g_icustom_244 = 0;
   g_icustom_268 = 0;
   g_icustom_252 = iCustom(Symbol(), 0, "SuperTrendTF", 10, 3, 2, 1);
   if (g_icustom_252 > 0.0) g_icustom_236 = iCustom(Symbol(), 0, "SuperTrendTF", 10, gi_284, 0, 1);
   if (g_icustom_252 < 0.0) g_icustom_244 = iCustom(Symbol(), 0, "SuperTrendTF", 10, gi_284, 1, 1);
   g_icustom_276 = iCustom(Symbol(), 0, "SuperTrendTF", 10, gi_284, 2, 2);
   if (g_icustom_276 > 0.0) g_icustom_260 = iCustom(Symbol(), 0, "SuperTrendTF", 10, gi_284, 0, 2);
   if (g_icustom_276 < 0.0) g_icustom_268 = iCustom(Symbol(), 0, "SuperTrendTF", 10, gi_284, 1, 2);
   gs_288 = iif(g_icustom_276 != g_icustom_252, "Oui", "Non");
   Print("TrendUp_C : ", g_icustom_236, ",  TrendUp_P : ", g_icustom_260, ",  TrendDown_C : ", g_icustom_244, ",  TrendDown_P : ", g_icustom_268, ",  Trend_C : ", g_icustom_252, ",  Trend_P : ", g_icustom_276, ",  Inversion : ", gs_288);
   Comment("\n" 
      + "Heure de référence    : " + TimeToStr(gi_316, TIME_MINUTES) 
      + "\n" 
      + "Ouvert    :  " + Ouvert() 
      + "\n" 
      + "\n" 
      + "Positions précédentes" 
      + "\n" 
      + "TrendUp   :  " + DoubleToStr(g_icustom_260, g_digits_216) 
      + "\n" 
      + "TrendDown :  " + DoubleToStr(g_icustom_268, g_digits_216) 
      + "\n" 
      + "\n" 
      + "Positions courantes" 
      + "\n" 
      + "TrendUp   :  " + DoubleToStr(g_icustom_236, g_digits_216) 
      + "\n" 
      + "TrendDown :  " + DoubleToStr(g_icustom_244, g_digits_216) 
      + "\n" 
      + "\n" 
      + "Inversion SuperTrend :  " + gs_288 
      + "\n" 
      + "\n" 
      + "\n" 
      + "Paramètres généraux" 
      + "\n" 
      + "Lot       :  " + DoubleToStr(Lots, 2) 
      + "\n" 
      + "Stop      :  " + Stop + " pips" 
      + "\n" 
      + "Digits " + Symbol() + " :  " + g_digits_216 + " décimales" 
   + "\n");
   MiseAjour();
   if (TotalOrdre("ALL") == 0) g_count_324 = 0;
   if (Ouvert() == "Oui") {
      g_count_324++;
      VerifInversion();
      if (g_count_324 == 1) {
         if ((TotalOrdre("ALL") == 2 && !OrderStopOnly) || (TotalOrdre("STOP") == 1 && OrderStopOnly)) {
            Comment(Symbol(), " en", NomPeriode(), ": Attention, des ordres résiduels gérés par TribuForex V1.1 sont présents : pas de création d ordre supplémentaire !");
            return (0);
         }
         if (TotalOrdre("ALL") == 0) {
            Print("Pas d ordre en cours");
            if (g_icustom_252 == 1.0) {
               OpenBuy();
               MiseAjour();
               OpenSellStop();
               return (0);
            }
            if (g_icustom_252 == -1.0) {
               OpenSell();
               MiseAjour();
               OpenBuyStop();
               return (0);
            }
         }
      }
      if (g_icustom_252 == 1.0 && TotalOrdre("BUY") == 1 && TotalOrdre("SELLSTOP") == 0) {
         OpenSellStop();
         MiseAjour();
         return (0);
      }
      if (g_icustom_252 == -1.0 && TotalOrdre("SELL") == 1 && TotalOrdre("BUYSTOP") == 0) {
         OpenBuyStop();
         MiseAjour();
         return (0);
      }
   }
   return (0);
}

void OpenBuy() {
   int l_ticket_0;
   int li_12;
   double l_price_32;
   int l_count_8 = 0;
   double ld_unused_16 = 0;
   double ld_unused_24 = 0;
   if (OrderStopOnly == 0) {
      li_12 = TotalOrdre("SELL");
      if (li_12 > 0) Alert(Symbol(), " : Déjà un ordre SELL en", NomPeriode(), "en cours... pas de hedge !");
      else {
         li_12 = TotalOrdre("BUY");
         if (li_12 > 0) Alert(Symbol(), " : Déjà un ordre BUY en", NomPeriode(), "en cours... Pas d ordre supplémentaire !");
         else {
            while (l_count_8 < 10) {
               RefreshRates();
               l_price_32 = NormalizeDouble(Ask, g_digits_216);
               l_ticket_0 = OrderSend(Symbol(), OP_BUY, Lots, l_price_32, g_slippage_212, 0, 0, gs_196 + NomPeriode(), g_magic_208, 0, g_color_180);
               PlaySound("Expert.wav");
               Print(Symbol(), " : Fonction OpenBuy executée , ticket =" + l_ticket_0);
               if (l_ticket_0 <= 0) {
                  Alert(Symbol(), " : Erreur survenue ==> ", GetLastError(), "  ", ErrorDescription(GetLastError()), " Buy @ ", Ask);
                  g_slippage_212++;
                  l_count_8++;
                  Sleep(2000);
               } else l_count_8 = 10;
            }
         }
      }
   }
}

void OpenSell() {
   int l_ticket_0;
   int li_12;
   double l_price_16;
   int l_count_8 = 0;
   if (OrderStopOnly == 0) {
      li_12 = TotalOrdre("BUY");
      if (li_12 > 0) Alert(Symbol(), " : Déjà un ordre BUY en", NomPeriode(), "en cours... Pas de hedge !");
      else {
         li_12 = TotalOrdre("SELL");
         if (li_12 > 0) Alert(Symbol(), " : Déjà un ordre SELL en", NomPeriode(), "en cours... Pas d ordre supplémentaire !");
         else {
            while (l_count_8 < 10) {
               RefreshRates();
               l_price_16 = NormalizeDouble(Bid, g_digits_216);
               l_ticket_0 = OrderSend(Symbol(), OP_SELL, Lots, l_price_16, g_slippage_212, 0, 0, gs_196 + NomPeriode(), g_magic_208, 0, g_color_184);
               PlaySound("Expert.wav");
               Print(Symbol(), " : Fonction OpenSell executée , ticket =" + l_ticket_0);
               if (l_ticket_0 <= 0) {
                  Alert(Symbol(), " : Erreur survenue ==> (", GetLastError(), ")  ", ErrorDescription(GetLastError()), " Sell @ ", Bid);
                  g_slippage_212++;
                  l_count_8++;
                  Sleep(2000);
               } else l_count_8 = 10;
            }
         }
      }
   }
}

void OpenBuyStop() {
   int l_ticket_0;
   double l_price_20;
   int l_count_8 = 0;
   double l_price_12 = NormalizeDouble(g_icustom_244 + Stop * Point, g_digits_216);
   if (StopSecours > 0) l_price_20 = NormalizeDouble(l_price_12 - StopSecours * Point, g_digits_216);
   while (l_count_8 < 10) {
      l_ticket_0 = OrderSend(Symbol(), OP_BUYSTOP, Lots, l_price_12, g_slippage_212, l_price_20, 0, gs_196 + NomPeriode(), g_magic_208, 0, CLR_NONE);
      Print(Symbol(), " : Fonction OpenBuyStop executée , ticket =" + l_ticket_0);
      if (l_ticket_0 <= 0) {
         Alert(Symbol(), " : Erreur survenue ==> (", GetLastError(), ")  ", ErrorDescription(GetLastError()), " BuyStop @ ", l_price_12, " Stop ", l_price_20);
         g_slippage_212++;
         l_count_8++;
         Sleep(2000);
      } else l_count_8 = 10;
   }
}

void OpenSellStop() {
   int l_ticket_0;
   double l_price_20;
   int l_count_8 = 0;
   double l_price_12 = NormalizeDouble(g_icustom_236 - Stop * Point, g_digits_216);
   if (StopSecours > 0) l_price_20 = NormalizeDouble(l_price_12 + StopSecours * Point, g_digits_216);
   while (l_count_8 < 10) {
      l_ticket_0 = OrderSend(Symbol(), OP_SELLSTOP, Lots, l_price_12, g_slippage_212, l_price_20, 0, gs_196 + NomPeriode(), g_magic_208, 0, CLR_NONE);
      Print(Symbol(), " : Fonction OpenSellStop executée , ticket =" + l_ticket_0);
      if (l_ticket_0 <= 0) {
         Alert(Symbol(), " : Erreur survenue ==> (", GetLastError(), ")  ", ErrorDescription(GetLastError()), " SellStop @ ", l_price_12, " Stop ", l_price_20);
         g_slippage_212++;
         l_count_8++;
         Sleep(2000);
      } else l_count_8 = 10;
   }
}

string Ouvert() {
   gs_308 = "Non";
   if ((Hour() == HeureDeb && Minute() >= MinutDeb) || Hour() > HeureDeb)
      if ((Hour() == HeureFin && Minute() <= MinutFin) || Hour() < HeureFin) gs_308 = "Oui";
   return (gs_308);
}

void MiseAjour() {
   double l_ord_open_price_0;
   double l_price_8;
   double l_price_16;
   if (Stop != 0) {
      for (g_pos_296 = 0; g_pos_296 < OrdersTotal(); g_pos_296++) {
         OrderSelect(g_pos_296, SELECT_BY_POS, MODE_TRADES);
         if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_208) {
            switch (OrderType()) {
            case OP_BUY:
               if (g_icustom_236 == 0.0) return;
               if (gi_232) {
                  l_ord_open_price_0 = NormalizeDouble(OrderOpenPrice(), g_digits_216);
                  if (Stop > 0) l_price_8 = NormalizeDouble(g_icustom_236 - Stop * Point, g_digits_216);
                  if (TakeProfit > 0) l_price_16 = NormalizeDouble(OrderOpenPrice() + TakeProfit * Point, g_digits_216);
               } else {
                  l_ord_open_price_0 = OrderOpenPrice();
                  if (Stop > 0) l_price_8 = g_icustom_236 - Stop * Point;
                  if (TakeProfit > 0) l_price_16 = OrderOpenPrice() + TakeProfit * Point;
               }
               Print("Modification SL/TP ordre BUY ", OrderTicket(), ", Prix stop : ", l_price_8, ", Prix profit :", l_price_16);
               OrderModify(OrderTicket(), l_ord_open_price_0, l_price_8, l_price_16, 0, CLR_NONE);
               break;
            case OP_SELL:
               if (g_icustom_244 == 0.0) return;
               if (gi_232) {
                  l_ord_open_price_0 = NormalizeDouble(OrderOpenPrice(), g_digits_216);
                  if (Stop > 0) l_price_8 = NormalizeDouble(g_icustom_244 + Stop * Point, g_digits_216);
                  if (TakeProfit > 0) l_price_16 = NormalizeDouble(OrderOpenPrice() - TakeProfit * Point, g_digits_216);
               } else {
                  l_ord_open_price_0 = OrderOpenPrice();
                  if (Stop > 0) l_price_8 = g_icustom_244 + Stop * Point;
                  if (TakeProfit > 0) l_price_16 = OrderOpenPrice() - TakeProfit * Point;
               }
               Print("Modification SL/TP ordre SELL ", OrderTicket(), ", Prix stop : ", l_price_8, ", Prix profit :", l_price_16);
               OrderModify(OrderTicket(), l_ord_open_price_0, l_price_8, l_price_16, 0, CLR_NONE);
               break;
            case OP_BUYSTOP:
               if (g_icustom_244 == 0.0) return;
               if (gi_232) {
                  l_ord_open_price_0 = NormalizeDouble(g_icustom_244 + Stop * Point, g_digits_216);
                  if (StopSecours > 0) l_price_8 = NormalizeDouble(l_ord_open_price_0 - StopSecours * Point, g_digits_216);
               } else {
                  l_ord_open_price_0 = g_icustom_244 + Stop * Point;
                  if (StopSecours > 0) l_price_8 = l_ord_open_price_0 - StopSecours * Point;
               }
               Print("Modification prix entrée ordre BUYSTOP ", OrderTicket(), ", ", l_ord_open_price_0, " stop ", l_price_8);
               OrderModify(OrderTicket(), l_ord_open_price_0, l_price_8, 0, 0, CLR_NONE);
               break;
            case OP_SELLSTOP:
               if (g_icustom_236 == 0.0) return;
               if (gi_232) {
                  l_ord_open_price_0 = NormalizeDouble(g_icustom_236 - Stop * Point, g_digits_216);
                  if (StopSecours > 0) l_price_8 = NormalizeDouble(l_ord_open_price_0 + StopSecours * Point, g_digits_216);
               } else {
                  l_ord_open_price_0 = g_icustom_236 - Stop * Point;
                  if (StopSecours > 0) l_price_8 = l_ord_open_price_0 + StopSecours * Point;
               }
               Print("Modification prix entrée ordre SELLSTOP ", OrderTicket(), ", ", l_ord_open_price_0, " stop ", l_price_8);
               OrderModify(OrderTicket(), l_ord_open_price_0, l_price_8, 0, 0, CLR_NONE);
            }
         }
      }
   }
}

void CloseOrdre(string as_0) {
   double l_bid_8;
   for (g_pos_296 = 0; g_pos_296 < OrdersTotal(); g_pos_296++) {
      OrderSelect(g_pos_296, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_208) {
         if (as_0 == "STOP" || as_0 == "ALL") {
            if (OrderType() == OP_BUYSTOP || OrderType() == OP_SELLSTOP) {
               OrderDelete(OrderTicket(), CLR_NONE);
               Print("Fermeture ordre en attente ", OrderTicket());
               continue;
            }
         }
         if (as_0 == "BUY" || as_0 == "ALL") {
            if (OrderType() == OP_BUY) {
               l_bid_8 = Bid;
               if (gi_232) l_bid_8 = NormalizeDouble(Bid, g_digits_216);
               OrderClose(OrderTicket(), OrderLots(), l_bid_8, g_slippage_212, Red);
               Print("Fermeture ordre BUY ", OrderTicket(), " à ", Bid);
               continue;
            }
         }
         if (as_0 == "SELL" || as_0 == "ALL") {
            if (OrderType() == OP_SELL) {
               l_bid_8 = Ask;
               if (gi_232) l_bid_8 = NormalizeDouble(Ask, g_digits_216);
               OrderClose(OrderTicket(), OrderLots(), l_bid_8, g_slippage_212, Red);
               Print("Fermeture ordre SELL ", OrderTicket(), " à ", Ask);
               continue;
            }
         }
         if (as_0 == "SELLSTOP") {
            if (OrderType() == OP_SELLSTOP) {
               OrderDelete(OrderTicket(), CLR_NONE);
               Print("Fermeture ordre en attente ", OrderTicket());
               continue;
            }
         }
         if (as_0 == "BUYSTOP") {
            if (OrderType() == OP_BUYSTOP) {
               OrderDelete(OrderTicket(), CLR_NONE);
               Print("Fermeture ordre en attente ", OrderTicket());
            }
         }
      }
   }
}

int TotalOrdre(string as_0) {
   int li_ret_8;
   for (g_pos_296 = 0; g_pos_296 < OrdersTotal(); g_pos_296++) {
      OrderSelect(g_pos_296, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_208) {
         if (as_0 == "ALL") {
            if (OrderType() == OP_BUY || OrderType() == OP_SELL || OrderType() == OP_BUYSTOP || OrderType() == OP_SELLSTOP) {
               li_ret_8++;
               continue;
            }
         }
         if (as_0 == "BUY") {
            if (OrderType() == OP_BUY) {
               li_ret_8++;
               continue;
            }
         }
         if (as_0 == "SELL") {
            if (OrderType() == OP_SELL) {
               li_ret_8++;
               continue;
            }
         }
         if (as_0 == "BUYSTOP") {
            if (OrderType() == OP_BUYSTOP) {
               li_ret_8++;
               continue;
            }
         }
         if (as_0 == "SELLSTOP")
            if (OrderType() == OP_SELLSTOP) li_ret_8++;
      }
   }
   return (li_ret_8);
}

string iif(bool ai_0, string as_4, string as_12) {
   if (ai_0) return (as_4);
   return (as_12);
}

void VerifFinTrading() {
   if (CloseEndDay && TotalOrdre("ALL") > 0) {
      if (Hour() > HeureFin || (Hour() == HeureFin && Minute() >= MinutFin)) {
         Print("Clôture des ordres en cours");
         CloseOrdre("ALL");
         g_count_324 = 0;
         return;
      }
   }
   if (TotalOrdre("ALL") > 0) {
      if (Hour() > HeureFin || (Hour() == HeureFin && Minute() >= MinutFin)) {
         Print("Clôture des ordres en cours à ", Hour(), 58, Minute());
         CloseOrdre("STOP");
         g_count_324 = 0;
         return;
      }
   }
}

void VerifInversion() {
   if (CloseReverse && gs_288 == "Non") {
      if (g_icustom_252 == -1.0 && TotalOrdre("BUY") > 0) {
         Print("Clôture des ordres en cours");
         CloseOrdre("BUY");
         CloseOrdre("SELLSTOP");
         Sleep(50);
         Print("Création des ordres inverses");
         OpenSell();
         Sleep(50);
         OpenBuyStop();
         return;
      }
      if (g_icustom_252 == 1.0 && TotalOrdre("SELL") > 0) {
         Print("Clôture des ordres en cours");
         CloseOrdre("SELL");
         CloseOrdre("BUYSTOP");
         Sleep(50);
         Print("Création des ordres inverses");
         OpenBuy();
         Sleep(50);
         OpenSellStop();
         return;
      }
   }
}

string NomPeriode() {
   if (Period() == PERIOD_M1) return (" M1 ");
   if (Period() == PERIOD_M5) return (" M5 ");
   if (Period() == PERIOD_M15) return (" M15 ");
   if (Period() == PERIOD_M30) return (" M30 ");
   if (Period() == PERIOD_H1) return (" H1 ");
   if (Period() == PERIOD_H4) return (" H4 ");
   if (Period() == PERIOD_D1) return (" D1 ");
   if (Period() == PERIOD_W1) return (" W1 ");
   if (Period() == PERIOD_MN1) return (" MN ");
   return ("");
}

string ErrorDescription(int ai_0) {
   string ls_ret_4;
   switch (ai_0) {
   case 0:
   case 1:
      ls_ret_4 = "no error";
      break;
   case 2:
      ls_ret_4 = "common error";
      break;
   case 3:
      ls_ret_4 = "invalid trade parameters";
      break;
   case 4:
      ls_ret_4 = "trade server is busy";
      break;
   case 5:
      ls_ret_4 = "old version of the client terminal";
      break;
   case 6:
      ls_ret_4 = "no connection with trade server";
      break;
   case 7:
      ls_ret_4 = "not enough rights";
      break;
   case 8:
      ls_ret_4 = "too frequent requests";
      break;
   case 9:
      ls_ret_4 = "malfunctional trade operation";
      break;
   case 64:
      ls_ret_4 = "account disabled";
      break;
   case 65:
      ls_ret_4 = "invalid account";
      break;
   case 128:
      ls_ret_4 = "trade timeout";
      break;
   case 129:
      ls_ret_4 = "invalid price";
      break;
   case 130:
      ls_ret_4 = "invalid stops";
      break;
   case 131:
      ls_ret_4 = "invalid trade volume";
      break;
   case 132:
      ls_ret_4 = "market is closed";
      break;
   case 133:
      ls_ret_4 = "trade is disabled";
      break;
   case 134:
      ls_ret_4 = "not enough money";
      break;
   case 135:
      ls_ret_4 = "price changed";
      break;
   case 136:
      ls_ret_4 = "off quotes";
      break;
   case 137:
      ls_ret_4 = "broker is busy";
      break;
   case 138:
      ls_ret_4 = "requote";
      break;
   case 139:
      ls_ret_4 = "order is locked";
      break;
   case 140:
      ls_ret_4 = "long positions only allowed";
      break;
   case 141:
      ls_ret_4 = "too many requests";
      break;
   case 145:
      ls_ret_4 = "modification denied because order too close to market";
      break;
   case 146:
      ls_ret_4 = "trade context is busy";
      break;
   case 4000:
      ls_ret_4 = "no error";
      break;
   case 4001:
      ls_ret_4 = "wrong function pointer";
      break;
   case 4002:
      ls_ret_4 = "array index is out of range";
      break;
   case 4003:
      ls_ret_4 = "no memory for function call stack";
      break;
   case 4004:
      ls_ret_4 = "recursive stack overflow";
      break;
   case 4005:
      ls_ret_4 = "not enough stack for parameter";
      break;
   case 4006:
      ls_ret_4 = "no memory for parameter string";
      break;
   case 4007:
      ls_ret_4 = "no memory for temp string";
      break;
   case 4008:
      ls_ret_4 = "not initialized string";
      break;
   case 4009:
      ls_ret_4 = "not initialized string in array";
      break;
   case 4010:
      ls_ret_4 = "no memory for array\' string";
      break;
   case 4011:
      ls_ret_4 = "too long string";
      break;
   case 4012:
      ls_ret_4 = "remainder from zero divide";
      break;
   case 4013:
      ls_ret_4 = "zero divide";
      break;
   case 4014:
      ls_ret_4 = "unknown command";
      break;
   case 4015:
      ls_ret_4 = "wrong jump (never generated error)";
      break;
   case 4016:
      ls_ret_4 = "not initialized array";
      break;
   case 4017:
      ls_ret_4 = "dll calls are not allowed";
      break;
   case 4018:
      ls_ret_4 = "cannot load library";
      break;
   case 4019:
      ls_ret_4 = "cannot call function";
      break;
   case 4020:
      ls_ret_4 = "expert function calls are not allowed";
      break;
   case 4021:
      ls_ret_4 = "not enough memory for temp string returned from function";
      break;
   case 4022:
      ls_ret_4 = "system is busy (never generated error)";
      break;
   case 4050:
      ls_ret_4 = "invalid function parameters count";
      break;
   case 4051:
      ls_ret_4 = "invalid function parameter value";
      break;
   case 4052:
      ls_ret_4 = "string function internal error";
      break;
   case 4053:
      ls_ret_4 = "some array error";
      break;
   case 4054:
      ls_ret_4 = "incorrect series array using";
      break;
   case 4055:
      ls_ret_4 = "custom indicator error";
      break;
   case 4056:
      ls_ret_4 = "arrays are incompatible";
      break;
   case 4057:
      ls_ret_4 = "global variables processing error";
      break;
   case 4058:
      ls_ret_4 = "global variable not found";
      break;
   case 4059:
      ls_ret_4 = "function is not allowed in testing mode";
      break;
   case 4060:
      ls_ret_4 = "function is not confirmed";
      break;
   case 4061:
      ls_ret_4 = "send mail error";
      break;
   case 4062:
      ls_ret_4 = "string parameter expected";
      break;
   case 4063:
      ls_ret_4 = "integer parameter expected";
      break;
   case 4064:
      ls_ret_4 = "double parameter expected";
      break;
   case 4065:
      ls_ret_4 = "array as parameter expected";
      break;
   case 4066:
      ls_ret_4 = "requested history data in update state";
      break;
   case 4099:
      ls_ret_4 = "end of file";
      break;
   case 4100:
      ls_ret_4 = "some file error";
      break;
   case 4101:
      ls_ret_4 = "wrong file name";
      break;
   case 4102:
      ls_ret_4 = "too many opened files";
      break;
   case 4103:
      ls_ret_4 = "cannot open file";
      break;
   case 4104:
      ls_ret_4 = "incompatible access to a file";
      break;
   case 4105:
      ls_ret_4 = "no order selected";
      break;
   case 4106:
      ls_ret_4 = "unknown symbol";
      break;
   case 4107:
      ls_ret_4 = "invalid price parameter for trade function";
      break;
   case 4108:
      ls_ret_4 = "invalid ticket";
      break;
   case 4109:
      ls_ret_4 = "trade is not allowed";
      break;
   case 4110:
      ls_ret_4 = "longs are not allowed";
      break;
   case 4111:
      ls_ret_4 = "shorts are not allowed";
      break;
   case 4200:
      ls_ret_4 = "object is already exist";
      break;
   case 4201:
      ls_ret_4 = "unknown object property";
      break;
   case 4202:
      ls_ret_4 = "object is not exist";
      break;
   case 4203:
      ls_ret_4 = "unknown object type";
      break;
   case 4204:
      ls_ret_4 = "no object name";
      break;
   case 4205:
      ls_ret_4 = "object coordinates error";
      break;
   case 4206:
      ls_ret_4 = "no specified subwindow";
      break;
   default:
      ls_ret_4 = "unknown error";
   }
   return (ls_ret_4);
}

After the beginning of the code, there is this :

Code:

   g_icustom_252 = iCustom(Symbol(), 0, "SuperTrendTF", 10, 3, 2, 1);
   if (g_icustom_252 > 0.0) g_icustom_236 = iCustom(Symbol(), 0, "SuperTrendTF", 10, gi_284, 0, 1);
   if (g_icustom_252 < 0.0) g_icustom_244 = iCustom(Symbol(), 0, "SuperTrendTF", 10, gi_284, 1, 1);
   g_icustom_276 = iCustom(Symbol(), 0, "SuperTrendTF", 10, gi_284, 2, 2);
   if (g_icustom_276 > 0.0) g_icustom_260 = iCustom(Symbol(), 0, "SuperTrendTF", 10, gi_284, 0, 2);
   if (g_icustom_276 < 0.0) g_icustom_268 = iCustom(Symbol(), 0, "SuperTrendTF", 10, gi_284, 1, 2);

And that the only lines where you can find "10 and 3" (referring to the supertrend parameters)
You can try to change this number as wanted with the metaeditor of your MT4 platform, then compile MQ4 to EX4 and test it.

Best regards,
Vincent.




signature forex
 

#20 ⇑ Haut ⇑ 03-04-2014 13:03:39

cebac
Active Member
Pas d'avatar
Registered: 01-10-2012
Posts: 6
Reputation :   
Rate this member :
  • Currently 2.53/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.5/5 (38 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Hello Vincent,

do you also have the mq4-code of the indicator "SuperTrendTF"?

Regards
Carlos




 

#21 ⇑ Haut ⇑ 04-04-2014 08:47:59

Vincent
Trader, Analyst and webmaster for Forex-Tribe
Forex
Registered: 16-07-2008
Posts: 39318
Reputation :   
Website
Rate this member :
  • Currently 2.73/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.7/5 (295 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Here it is :

//+------------------------------------------------------------------+
//|                                              SuperTrend.mq4 v1.2 |
//+------------------------------------------------------------------+

#property indicator_chart_window
#property indicator_color1 Lime
#property indicator_color2 Red
#property indicator_width1 2
#property indicator_width2 2
#property indicator_buffers 3
double TrendUp[], TrendDown[];
double TrendX[];
int changeOfTrend;
extern int Nbr_Periods = 10;
extern int Multiplier = 3;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexBuffer(0, TrendUp);
   SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 2);
   SetIndexLabel(0, "Trend Up");
   
   SetIndexBuffer(1, TrendDown);
   SetIndexStyle(1, DRAW_LINE, STYLE_SOLID, 2);
   SetIndexLabel(1, "Trend Down");
   
   SetIndexBuffer(2, TrendX);
   SetIndexStyle(2, DRAW_NONE);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int limit, i, flag, flagh, trend[5000];
   double up[5000], dn[5000], medianPrice, atr;
   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;
   //Print(limit);
   
//----
   for (i = Bars; i >= 0; i--) {
      TrendUp[i] = EMPTY_VALUE;
      TrendDown[i] = EMPTY_VALUE;
      atr = iATR(NULL, 0, Nbr_Periods, i);
      //Print("atr: "+atr[i]);
      medianPrice = (High[i]+Low[i])/2;
      //Print("medianPrice: "+medianPrice[i]);
      up[i]=medianPrice+(Multiplier*atr);
      //Print("up: "+up[i]);
      dn[i]=medianPrice-(Multiplier*atr);
      //Print("dn: "+dn[i]);
      trend[i]=1;
   
     
      if (Close[i]>up[i+1]) {
         trend[i]=1;
         if (trend[i+1] == -1) changeOfTrend = 1;
         //Print("trend: "+trend[i]);
         
      }
      else if (Close[i]<dn[i+1]) {
         trend[i]=-1;
         if (trend[i+1] == 1) changeOfTrend = 1;
         //Print("trend: "+trend[i]);
      }
      else if (trend[i+1]==1) {
         trend[i]=1;
         changeOfTrend = 0;       
      }
      else if (trend[i+1]==-1) {
         trend[i]=-1;
         changeOfTrend = 0;
      }

      TrendX[i] = trend[i];
      //Print("TrendX["+i+"]: "+TrendX[i]);

      if (trend[i]<0 && trend[i+1]>0) {
         flag=1;
         //Print("flag: "+flag);
      }
      else {
         flag=0;
         //Print("flagh: "+flag);
      }
     
      if (trend[i]>0 && trend[i+1]<0) {
         flagh=1;
         //Print("flagh: "+flagh);
      }
      else {
         flagh=0;
         //Print("flagh: "+flagh);
      }
     
      if (trend[i]>0 && dn[i]<dn[i+1])
         dn[i]=dn[i+1];
     
      if (trend[i]<0 && up[i]>up[i+1])
         up[i]=up[i+1];
     
      if (flag==1)
         up[i]=medianPrice+(Multiplier*atr);
         
      if (flagh==1)
         dn[i]=medianPrice-(Multiplier*atr);
     
         
      //-- Draw the indicator
      if (trend[i]==1) {
         TrendUp[i]=dn[i];
         if (changeOfTrend == 1) {
            TrendUp[i+1] = TrendDown[i+1];
            changeOfTrend = 0;
         }
      }
      else if (trend[i]==-1) {
         TrendDown[i]=up[i];
         if (changeOfTrend == 1) {
            TrendDown[i+1] = TrendUp[i+1];
            changeOfTrend = 0;
         }
      }
   }
   WindowRedraw();
     
//----
   return(0);
  }
//+------------------------------------------------------------------+



Attachments:
Attachment Icon SuperTrendTF.mq4, Size: 4,511 bytes, Downloads: 0

signature forex
 

#22 ⇑ Haut ⇑ 04-04-2014 11:41:09

cebac
Active Member
Pas d'avatar
Registered: 01-10-2012
Posts: 6
Reputation :   
Rate this member :
  • Currently 2.53/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.5/5 (38 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Thanks a lot!

Kind regards
Carlos




 

#23 ⇑ Haut ⇑ 25-06-2014 19:22:22

shipurrella
Member
Pas d'avatar
Registered: 25-06-2014
Posts: 1
Reputation :   
Rate this member :
  • Currently 1.93/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 1.9/5 (15 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Vincent wrote:
So, please try the following version of the EA.
(The problem comes from the password. Your trading account number is too long... the password generated can't be indicated without missing a number...)

So, it doesn't matter if it's a demo or a live account. For the password, the only thing you have a enter is your trading account number +1

As exemple :  account number is 5555556 -> the password is 5555557

Waiting for your reply.
(i hope it will work)

NB: Don't forget to add the Super Trend indicator on the chart before adding the EA.

Vincent.

good adviser?




 

#24 ⇑ Haut ⇑ 25-06-2014 20:06:53

Vincent
Trader, Analyst and webmaster for Forex-Tribe
Forex
Registered: 16-07-2008
Posts: 39318
Reputation :   
Website
Rate this member :
  • Currently 2.73/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.7/5 (295 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Try it on a demo account. It's free.

And here you have a video demo (in french, but check the end of the video when the EA is active) :




signature forex
 

#25 ⇑ Haut ⇑ 21-07-2014 11:47:35

lachie71
Member
Pas d'avatar
Registered: 21-07-2014
Posts: 1
Reputation :   
Rate this member :
  • Currently 2.00/5
  • 1
  • 2
  • 3
  • 4
  • 5


  • Note : 2.0/5 (12 votes)


Share this topic :

Re: Tribuforex Expert Advisor

Hi,
I downloaded the EA zip file  but it seems the files inside (SupertrendTF and TribuforexV1.1) are not correct. The icons are blank...
Do I something wrong?
Thank You
Luca




 

Index
  •  » Automated trading system (Expert Advisors) » 

    Tribuforex Expert Advisor



  • Pages: 1 2 Next