Forex



Go Back   Forex Trading > Downloads > Indicators - Metatrader 4
Forex Forum Register More recent Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #31 (permalink)  
Old 10-21-2009, 03:10 PM
Member
 
Join Date: Jun 2009
Posts: 46
shankees is on a distinguished road
my chart after the attachment

Quote:
Originally Posted by shankees View Post
now the problem is here.When i download the indis and placement in their appropriate place this is what appears in my chart(below).now in that rar there is indi called tcci that is missing and the indi that displays those circles above and the indi that display multi arrow above the circle and thema that changes the colour if is the one.if anybody knows where to get this indis or hhas the rar with all the indi pliz attach here so that we can discuss fully on the trade using this set up
my chart after the attachment looks like this .pliz help
Attached Images
File Type: gif different pic.gif (43.5 KB, 13 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #32 (permalink)  
Old 10-21-2009, 06:26 PM
Member
 
Join Date: Feb 2006
Posts: 63
icm63 is on a distinguished road
HELP Bug in my code..

HI,

I have this simple indicator that draw a blue box over a time range showing the high and low of the that time range. The time range is a busy news period.


How ever it works sometimes and sometimes it doesnt. See picture on todays (2009-10-21) USDCAD. Worked, then it didnt??


Any ideas, obviously something to do with getting the high and low in a time frame specified.

Attachment 91894

Last edited by icm63; 10-21-2009 at 06:39 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #33 (permalink)  
Old 10-23-2009, 04:25 PM
Junior Member
 
Join Date: Feb 2009
Posts: 1
nuno is on a distinguished road
need help

hello i have your ea "freedom131477". when i try i see 1problem. when market go far away the open position ruining account.so can you introduce in programming loss xxx usd in trade.
it's possibel? no pips but in money. so you know how much can you loss per trade when the market have a crazy turn.
thanks for your help
nuno
is pipmaker with10p3+
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #34 (permalink)  
Old 10-29-2009, 11:15 PM
Junior Member
 
Join Date: Oct 2008
Posts: 4
soheilpro is on a distinguished road
Red face help With an Indicator

hi,
I am just trying to modify force index indicator to change color. change to green if previous value is less than the current, yellow if prev and current are the same and Red if current value is smaller than the previous value. i have modified the code but some part of the indicator is now missing (as shown in the attached image). below is the code:

Code:
#property indicator_separate_window
#property indicator_buffers 3

#property indicator_color1 Yellow      
#property indicator_color2 Green
#property indicator_color3 Red
//---- input parameters
extern int       Force_Period=12;
extern int       MA_Method=1;
//extern string    "0=SMA, 1=EMA";
//---- buffers

double ExtMapBuffer1[],ExtMapBuffer2[],ExtMapBuffer3[];
double Force_Index[60000];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer1);
   
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1,ExtMapBuffer2);
   
   SetIndexStyle(2,DRAW_LINE);
   SetIndexBuffer(2,ExtMapBuffer3);
   
   SetIndexEmptyValue(0,NULL);
   SetIndexEmptyValue(1,NULL);
   SetIndexEmptyValue(2,NULL);
  
   
   ArraySetAsSeries(Force_Index,true);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted(),limit,i;
//----
   
     if(counted_bars>0) counted_bars--;
      limit=Bars-counted_bars;
      
      for(i=0; i<limit; i++)
      {
         Force_Index[i]=(Close[i]-Close[i+1])*Volume[i];
      }
      for (i=0;i<limit;i++)
      {
         if(iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i)<iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i+1))
         {
            ExtMapBuffer1[i]=0;
            ExtMapBuffer2[i]=0;
            ExtMapBuffer3[i]=iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i);//Should draw a red Line
         }
            else if (iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i)>iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i+1))
            {
               ExtMapBuffer2[i]=iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i);//Should Draw Green
               ExtMapBuffer1[i]=0;
               ExtMapBuffer3[i]=0;

            }
               else
               if(iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i)==iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i+1))
               {
                 ExtMapBuffer1[i]=iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i);//Shoud draw Yellow.
                 ExtMapBuffer3[i]=0;
                 ExtMapBuffer2[i]=0;

               }
      }
//----
   return(0);
  }

Any help will be appreciated here.
Attached Images
File Type: jpg indicator issue.jpg (43.1 KB, 15 views)

Last edited by soheilpro; 10-29-2009 at 11:17 PM. Reason: message is not completed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #35 (permalink)  
Old 10-30-2009, 01:11 AM
Junior Member
 
Join Date: Nov 2007
Posts: 22
leledc is on a distinguished road
Quote:
Originally Posted by soheilpro View Post
hi,
I am just trying to modify force index indicator to change color. change to green if previous value is less than the current, yellow if prev and current are the same and Red if current value is smaller than the previous value. i have modified the code but some part of the indicator is now missing (as shown in the attached image). below is the code:

Code:
#property indicator_separate_window
#property indicator_buffers 3

#property indicator_color1 Yellow      
#property indicator_color2 Green
#property indicator_color3 Red
//---- input parameters
extern int       Force_Period=12;
extern int       MA_Method=1;
//extern string    "0=SMA, 1=EMA";
//---- buffers

double ExtMapBuffer1[],ExtMapBuffer2[],ExtMapBuffer3[];
double Force_Index[60000];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer1);
   
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1,ExtMapBuffer2);
   
   SetIndexStyle(2,DRAW_LINE);
   SetIndexBuffer(2,ExtMapBuffer3);
   
   SetIndexEmptyValue(0,NULL);
   SetIndexEmptyValue(1,NULL);
   SetIndexEmptyValue(2,NULL);
  
   
   ArraySetAsSeries(Force_Index,true);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted(),limit,i;
//----
   
     if(counted_bars>0) counted_bars--;
      limit=Bars-counted_bars;
      
      for(i=0; i<limit; i++)
      {
         Force_Index[i]=(Close[i]-Close[i+1])*Volume[i];
      }
      for (i=0;i<limit;i++)
      {
         if(iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i)<iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i+1))
         {
            ExtMapBuffer1[i]=0;
            ExtMapBuffer2[i]=0;
            ExtMapBuffer3[i]=iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i);//Should draw a red Line
         }
            else if (iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i)>iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i+1))
            {
               ExtMapBuffer2[i]=iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i);//Should Draw Green
               ExtMapBuffer1[i]=0;
               ExtMapBuffer3[i]=0;

            }
               else
               if(iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i)==iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i+1))
               {
                 ExtMapBuffer1[i]=iMAOnArray(Force_Index,0,Force_Period,0,MA_Method,i);//Shoud draw Yellow.
                 ExtMapBuffer3[i]=0;
                 ExtMapBuffer2[i]=0;

               }
      }
//----
   return(0);
  }
Any help will be appreciated here.
Here is to you...
Attached Images
File Type: png 1256861650-clip-8kb.png (7.5 KB, 18 views)
Attached Files
File Type: mq4 FI.mq4 (2.0 KB, 34 views)

Last edited by leledc; 10-30-2009 at 01:15 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #36 (permalink)  
Old 11-02-2009, 06:59 PM
Junior Member
 
Join Date: Oct 2008
Posts: 4
soheilpro is on a distinguished road
Thanks

Thank you so much Leledc.
The Force index that i have attached is a little bit different than what it is in the MT4 indicator list. can you take a look at my code and see if you can spot any error in coding the indicator?


thanks again for your time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #37 (permalink)  
Old 11-03-2009, 01:49 PM
Junior Member
 
Join Date: Jul 2009
Posts: 2
kidyei is on a distinguished road
News script code with TS HELP!!!

Hi I'm new in this forum but, I saw that most of the people here know how to modify scripts. I wonder if somebody can help me to add a trailing stop in a news script. The unique requirement of this trailing stop is that this trailing stop should be activate at some distance like 10 pips with a trailing of 2 pips or 1.5 pips.

What I really want is to replace the TP by this TS but this trailing stop should have de minimum distance of activation of 8 pips or 10 pips.

The script for news that I have is this one:

//REQUERIMIENTOS= TOOLS,OPTIONS,EXPERTS (1,4,7)ACTIVADOS
#property copyright "none"
#property link "none"
//#property show_inputs

extern string _P_Trade = "FXPRO NEWS TRADE";
extern double Lots = 10; // ?????? ?????????? ????
extern int StopLoss = 50; // ?????? ?????????????? ?????
extern int TakeProfit = 10; // ?????? ?????????????? ?????
extern int DistanceSet = 20; // ?????????? ?? ?????
extern int Slippage = 3; // ??????????????? ????
//extern int TS = 30; //Trailing Stop



string Name_Expert = "Set2StopOrders";
bool UseSound = false; // ???????????? ???????? ??????
string NameFileSound = "expert.wav"; // ???????????? ????????? ?????
color clOpenBuy = LightBlue; // ???? ?????? BuyStop
color clOpenSell = LightCoral; // ???? ?????? SellStop


void start() {
double ldStop=0, ldTake=0;
double pAsk=Ask+DistanceSet*Point;
double pBid=Bid-DistanceSet*Point;

if (StopLoss!=0) ldStop=pAsk-StopLoss*Point;
if (TakeProfit!=0) ldTake=pAsk+TakeProfit*Point;
SetOrder(OP_BUYSTOP, pAsk, ldStop, ldTake);

if (StopLoss!=0) ldStop=pBid+StopLoss*Point;
if (TakeProfit!=0) ldTake=pBid-TakeProfit*Point;
SetOrder(OP_SELLSTOP, pBid, ldStop, ldTake);
}


void SetOrder(int op, double pp, double ldStop, double ldTake) {
color clOpen;
string lsComm=GetCommentForOrder();

if (op==OP_BUYSTOP) clOpen=clOpenBuy;
else clOpen=clOpenSell;
OrderSend(Symbol(),op,Lots,pp,Slippage,ldStop,ldTa ke,lsComm,0,0,clOpen);
if (UseSound) PlaySound(NameFileSound);
}

string GetCommentForOrder() {
return(Name_Expert+" "+GetNameTF(Period()));
}

string GetNameTF(int TimeFrame) {
switch (TimeFrame) {
case PERIOD_MN1: return("Monthly");
case PERIOD_W1: return("Weekly");
case PERIOD_D1: return("Daily");
case PERIOD_H4: return("H4");
case PERIOD_H1: return("H1");
case PERIOD_M30: return("M30");
case PERIOD_M15: return("M15");
case PERIOD_M5: return("M5");
case PERIOD_M1: return("M1");
default: return("UnknownPeriod");
}
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #38 (permalink)  
Old 11-07-2009, 12:20 AM
Junior Member
 
Join Date: Nov 2009
Posts: 1
fxmfcg is on a distinguished road
Modification

HI,


I would like to make changes in my EA is anyone could help me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #39 (permalink)  
Old 11-10-2009, 06:06 PM
Junior Member
 
Join Date: Nov 2009
Posts: 1
andyjones321 is on a distinguished road
Need Help with code

I have been working on this indicator for hours and can't seem to get it right.
I want the indicator to fire off an alert and send me an email one time only, if price comes to within 15 pips of 34EMA/8EMA crossover. The condition should then reset once price moves a specified no. of pips (in this case 20 pips) away from 34EMA/8EMA Cross. I Tried tweaking the code and now I get 3 errors:

')' - wrong parameters count

'else' - unexpected token

'MAType' - internal error

Any Help will be greatly appreciated.

Thanks
Attached Files
File Type: mq4 CrossEarlyAlert.mq4 (3.8 KB, 14 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #40 (permalink)  
Old 11-12-2009, 09:47 PM
furious_angel's Avatar
Senior Member
 
Join Date: Aug 2006
Location: Lat = 39*40'16.73" N, Lon = 104*48'53.70" W
Posts: 146
furious_angel is on a distinguished road
Master Candle break out EA

.. could some one please take a look @ this indicator and see if it would be possible to make a EA out of it.

the indicator is a great indicator.

i would like an EA from it with the following added to it.. the ea would drawn support and resistance lines with alarm function with a user defined buffer for example.. let say +10/-10 from the upper or lower areas.

there would also be the option of user defined take profit, stop loss, option for adding trailing stop.

the alrm that is in the indicator needs to have a user defined limit.. right now it chimes while price is inside the master candle range.. very annoying.. if it were adjustable to like 3-5 audio chimes.. that would be better..
i just need to be notified when a master candle has been detected..

the the ea would draw trend lines then when trend line is broken.. i would hear another audio alarm.. and then when price hits the user defined price support or resistance lines the ea would execute a trade as defined by the user..

i would also like to be able to add the ea to several different pairs and time frames..

does this make sense?

please let me know i will also post a picture to help explain what i am looking for.

master candle indicator with explaination of EA conversion
Attached Files
File Type: ex4 Master_Candle_v2.ex4 (5.8 KB, 27 views)
__________________
" If you are not here to live a perfect life, then you are wasting it. "
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT. The time now is 05:13 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.