Forex



Go Back   Forex Trading > Programming > MetaTrader
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
  #901 (permalink)  
Old 05-12-2008, 02:44 AM
Senior Member
 
Join Date: Feb 2007
Posts: 986
FerruFx is on a distinguished road
In your iCustom(); what is the LineSize3 parameter? If it's the CCI_Woodies_Lnx_v4 buffer number that's ok, if not, the buffer number you want to call is missing.

Also you have a space in your coding here: "S howLSMA".

FerruFx
__________________
FerruFx / www.ervent.net - Professional Coding Services (EAs/Indicators/Alerts)

BBVPS.com - Reliable Windows VPS For MT4 Hosting
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
  #902 (permalink)  
Old 05-12-2008, 03:10 AM
Junior Member
 
Join Date: Apr 2008
Posts: 6
delvinja is on a distinguished road
Need help with this code, please.

Hi guys i have been trying for the last three days to get this expert advisor to execute long trades in mt4 with no success. it only executes short trades even though the signal_buy is there . please could anyone have a look at this code and fix it for me or tell me what to do. i'm new to programming and built it from an online strategy builder. thanks in advance!

the code is attached.
Attached Files
File Type: mq4 TestDrive.mq4 (10.1 KB, 16 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
  #903 (permalink)  
Old 05-12-2008, 04:04 AM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,411
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
Quote:
Originally Posted by FerruFx View Post
In your iCustom(); what is the LineSize3 parameter? If it's the CCI_Woodies_Lnx_v4 buffer number that's ok, if not, the buffer number you want to call is missing.

Also you have a space in your coding here: "S howLSMA".

FerruFx
It's the value for the line, thin or bigger.
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
  #904 (permalink)  
Old 05-12-2008, 04:52 AM
Junior Member
 
Join Date: Apr 2008
Posts: 6
delvinja is on a distinguished road
I Need helpseriously

Ferrufx, I am totally new to this. built it on strategybuilder.com, i have no clue to "icustom" and i am lucky to have gotten this far. the idea is to buy when sma is above the top bollinger band and closethe trade once it crosses below the upper band. it should sell when sma is below the lowe bollinger band and close the trade when sma crosses above the lower band. please can you or someone correct this code so that it buys and sells? i'm trying to learn mql as we speak and having a hard time but not giving up yet
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
  #905 (permalink)  
Old 05-12-2008, 08:24 AM
Senior Member
 
Join Date: Feb 2007
Posts: 986
FerruFx is on a distinguished road
Quote:
Originally Posted by Linuxser View Post
It's the value for the line, thin or bigger.
I think so and it's why i asked ... Then the bar shift or the buffer number needed is missing at the end of the iCustom(); line.

delvinja, your code is at the very beginning. Actually I didn't see any long or short conditions to trigger a trade.

FerruFx
__________________
FerruFx / www.ervent.net - Professional Coding Services (EAs/Indicators/Alerts)

BBVPS.com - Reliable Windows VPS For MT4 Hosting
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
  #906 (permalink)  
Old 05-12-2008, 10:05 AM
Junior Member
 
Join Date: Apr 2008
Posts: 6
delvinja is on a distinguished road
need help

Thanks, ferrufx for the info. but how do iget this ea to work i obviously am not competent enough to make the adjustments myself so any assistance would be greatly appreciated, 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
  #907 (permalink)  
Old 05-12-2008, 10:15 AM
Badguy's Avatar
Member
 
Join Date: Jan 2006
Posts: 61
Badguy is on a distinguished road
CCI Woodies

Thanks Linuxer

I try to learn a little bit of coding MQL4 by copy and paste.
It's not so important, only for my learning.

Thanks once again


Quote:
Originally Posted by Linuxser View Post
I see with your code the idea is to buy/sell above/below 0 line.

Why don't you try with iCCI for your TCCI instead of call iCustom. There is nothing different between standard CCI and the other indicator.
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
  #908 (permalink)  
Old 05-12-2008, 10:49 AM
Senior Member
 
Join Date: Feb 2007
Posts: 986
FerruFx is on a distinguished road
Quote:
Originally Posted by FerruFx View Post
delvinja, your code is at the very beginning. Actually I didn't see any long or short conditions to trigger a trade.
Sorry delvinja, I answered wrong by looking the wrong EA. This answer was for Badguy.

FerruFx
__________________
FerruFx / www.ervent.net - Professional Coding Services (EAs/Indicators/Alerts)

BBVPS.com - Reliable Windows VPS For MT4 Hosting
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
  #909 (permalink)  
Old 05-12-2008, 02:28 PM
Junior Member
 
Join Date: Apr 2008
Posts: 6
delvinja is on a distinguished road
Custom indicator for coding EA

The indicator is the Macd_BB like the one used by Nexgen.
Settings are as follows"
FastLen = 10
SloLengthwLen = 26
Length = 10
Stdev = 1

a buy order should be executed when a green ball is developed above the upper line and closes only when the balls cross below the upper line again or hits ny trailing stop.
a sell is executed when a magenta ball is developed below the lower line and closes only when the balls cross above the lower line again.

take profits and stop loss should be moderate and allow the settings to be changed to tweak the expert. Ihave attached the indicator and am most grateful for your help with this.
If there is anything else that you may need you can post here or email me at delvin.patrick@gmail.com

thanks again bro!
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
  #910 (permalink)  
Old 05-12-2008, 02:30 PM
Junior Member
 
Join Date: Apr 2008
Posts: 6
delvinja is on a distinguished road
Ooops forgot to attach the indicator here it is

here is the indicator Ferrufx, sorry about that(for the expert advisor)
Attached Files
File Type: mq4 MACD BB.mq4 (4.4 KB, 32 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
#include, candle time, CHinGsMAroonCLK, code, coders guru, conditionally, dll, eli hayun, Eur_harvester.ex4, expert adviser, expert advisor, forex, higher high, how to code, indicator, I_XO_A_H, kehedge, mechanical trading, metatrader command line, mt4, MT4-LevelStop-Reverse, OrderReliable.mqh, programming, rectangle tool, trading, volty channel stop


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to code this? iscuba11 Metatrader 4 mql 4 - Development course 1 08-03-2007 05:22 PM


All times are GMT. The time now is 03:47 AM.



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