Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register More recent Blogs 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
  #831 (permalink)  
Old 10-22-2007, 04:57 PM
Junior Member
 
Join Date: Oct 2006
Posts: 27
Bone is on a distinguished road
ZigZag Channels Indicator

Hi! Can you please modify your ZigZag Channel indicator (ZigZag Channels!), so it automaticaly redraw trend lines after new zig zag peak appears? Or maybe you can give a clue how to modify it on my own? Thanks in advance.
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
  #832 (permalink)  
Old 10-22-2007, 06:44 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Lightbulb

Thanks Bone,

I know it's very important and I'll try to do!

Quote:
Originally Posted by Bone View Post
Hi! Can you please modify your ZigZag Channel indicator (ZigZag Channels!), so it automaticaly redraw trend lines after new zig zag peak appears? Or maybe you can give a clue how to modify it on my own? Thanks in advance.
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
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
  #833 (permalink)  
Old 10-23-2007, 10:53 AM
Junior Member
 
Join Date: Oct 2006
Posts: 15
ejlamarque is on a distinguished road
Breakeven

Hi codersguru. Would you add Breakeven funtion in this templeate EA or at limit teach me how I do that?
Thank you in advance

Enrique
Attached Files
File Type: mq4 EATemplate.mq4 (8.7 KB, 26 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
  #834 (permalink)  
Old 10-24-2007, 10:13 AM
Senior Member
 
Join Date: Feb 2007
Posts: 175
Flytox is on a distinguished road
Quote:
Originally Posted by Flytox View Post
Idid not have any answer for the post below so i copy it here, hoping that someone could explain, thanks:
Good Day
i'am learning mql4 and have difficulties to understand some functions example:
Code:
 for( shift=limit; shift>=0; shift--)
   {
   double RSI = iRSI(NULL,0,RSILength,PRICE_CLOSE,shift);
   SmRSI[shift]= SmRSI[shift+1] + 2./(Smooth+1)*(RSI - SmRSI[shift+1]);  
   
      if(SmRSI[shift] > SmRSI[shift+1]) {double hRSI = SmRSI[shift]; double lRSI = SmRSI[shift+1];}
      else 
      if(SmRSI[shift] < SmRSI[shift+1]) {hRSI = SmRSI[shift+1]; lRSI = SmRSI[shift];}
      else
      {hRSI = SmRSI[shift]; lRSI = SmRSI[shift];}
   
   ATRRSI[shift] = hRSI - lRSI;
I don't see how it is possible to know SmRSI value with the following line, knowing that it has not been defined before and seems to me mathematically impossible.
Code:
SmRSI[shift]= SmRSI[shift+1] + 2./(Smooth+1)*(RSI - SmRSI[shift+1]);
Could anyone explain please.
PS: it's a pîece of code from Igorad trendstrength indi.
Thanks
UP UP UP
may be Igorad or Codersguru may explain.
Thanks.
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
  #835 (permalink)  
Old 10-27-2007, 11:18 AM
Senior Member
 
Join Date: Oct 2005
Location: Porto/Portugal
Posts: 333
hellkas is on a distinguished road
Hi all...

Crown Forex changed the lots of 0.1 for 10000..
I would like to know what I have to change in this code

PHP Code:
if( mm != 
 
lotsi=MathCeil(AccountBalance()*risk/10000)/10;
 else 
 
lotsi=Lots
Thank you
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
  #836 (permalink)  
Old 10-29-2007, 12:15 PM
Junior Member
 
Join Date: Sep 2007
Posts: 29
Sendra is on a distinguished road
set fibonacci stop loss and take profit

Hi,

can anyone tell me how to set up fibonacci for stop/loss and take/profit, please.
I use the following:

double highest = High[iHighest(Symbol(),PERIOD_H1,MODE_HIGH,p,0)];
double lowest = Low[iLowest(Symbol(),PERIOD_H1,MODE_LOW,p,0)];
double tpb = (OrderOpenPrice()-lowest)*1.618;
double tps = (highest-OrderOpenPrice())*1.618;
double slb = (OrderOpenPrice()-lowest)*0.386;
double sls = (highest-OrderOpenPrice())*0.386;

either i put them inside OrderSend function nor setting them up as conditions to close trade, all of them fail.

I have check with BAT EA, since it also use fibonacci for take profit and stop loss, but I got headache instead.

Will someone please help......

Thank you.
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
  #837 (permalink)  
Old 10-31-2007, 12:59 PM
Junior Member
 
Join Date: Feb 2006
Posts: 8
jayzee is on a distinguished road
Hi codegurus,


How do i make a simple indicator that give alert when an ema reached a certain price level.

Please guide 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
  #838 (permalink)  
Old 10-31-2007, 09:04 PM
Member
 
Join Date: Feb 2006
Posts: 43
50weeks is on a distinguished road
Friday/Sunday Fix

Can anyone change this indicator to close on Sunday instead of Friday? I'm sure there is a simple fix for an experienced programmer, but I am just focused on trading.

I tried looking at it, but can't seem to figure it out. I am sure that it will help many traders. After the fix, please upload the .MQ4 file and not the .EX4 file.

Thanks!
Attached Files
File Type: mq4 (T_S_R)range2 .mq4 (12.7 KB, 17 views)
__________________
50 Weeks, LLC
EVOLVE As A Trader
http://www.50weeks.com
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
  #839 (permalink)  
Old 11-05-2007, 02:20 AM
ajk's Avatar
ajk ajk is offline
Senior Member
 
Join Date: Dec 2005
Posts: 261
ajk is on a distinguished road
ihighest

double CON1= High[iHighest(NULL,15,MODE_HIGH,10,5)]*Point;
double CON2= Low[iLowest(NULL,15,MODE_LOW,10,5)]*Point;
double CONBREAKPOINT = 10;
double BREAKFINAL = (CON1 - CON2) ;

I am developing a simple price filter and can't make this work. Can anyone tell me how to determine the highest price of the last x n number of bars?
I would like to take the pricehigh - price low and compare in pips

Any help would be appreciated.
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
  #840 (permalink)  
Old 11-05-2007, 02:59 AM
Member
 
Join Date: Feb 2007
Posts: 98
mer071898 is on a distinguished road
This indicator shows the Symbol, Profit, and the Breakeven point. Is there any way to add the pip total to this ?
Attached Files
File Type: mq4 i-Breakeven.mq4 (7.6 KB, 22 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
Reply

Bookmarks

Tags
forex, histogram, JMASlope, ToR 1.20, ZUP_v1.mq4


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 02:37 PM.



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