Forex



Go Back   Forex Trading > Discussion Areas > Suggestions for Trading Systems
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
  #21 (permalink)  
Old 07-20-2007, 11:08 AM
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 513
Shinigami is on a distinguished road
Thanks for bringing up! I was just looking for something like this!
Lucky!

Adding stoploss:
Open the expert (right click in the list and press "edit")
after "input parameters" add
PHP Code:
extern int StopLoss 100
yep, you can copy/paste.
Now, find these strings:
PHP Code:
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-StopLoss*Point,Ask+TakeProfit*Point,"My EA",12345,0,Green); 
PHP Code:
ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Bid+StopLoss*Point,Bid-TakeProfit*Point,"My EA",12345,0,Red); 
They are for sell and buy.
You can see the difference, right?
There was a 0 after Bid,3, and before Bid-TakeProfit*Point. I changed that 0 to Bid+StopLoss*Point.
These things are case-sensitive so make sure you copy/paste.
If you replace original strings (ticket=... these strings) with the ones I provided (search for "ticket=") you will have an EA with a stoploss. Yep, simply replace that 0 to Bid+StopLoss*Point and everything will work. Or simply copy/paste code pieces I provided.
__________________
MQL4 programming is easy ^^

Last edited by Shinigami; 07-20-2007 at 02:22 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
  #22 (permalink)  
Old 07-20-2007, 08:14 PM
Junior Member
 
Join Date: Aug 2006
Posts: 11
paulan is on a distinguished road
hmm somehow it works great on the GBPUSD daily chart, but not on other timeframes..

I will have to look into that why this is happening,

This is the backtester graph I got from daily chart (default settings, SL=21, Lots=0.1):
Attached Images
File Type: gif TesterGraphMA2.gif (5.5 KB, 675 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
  #23 (permalink)  
Old 12-31-2007, 11:50 PM
bulegila's Avatar
Junior Member
 
Join Date: Dec 2006
Posts: 8
bulegila is on a distinguished road
Channel Break with alert

Hello and a Happy New Year to all...

I am posting to this thread in hopes that I may find someone who can code an indicator and possibly an EA for a simple channel break system that I have backtested manually with decent results.

an arrow with alert when price opens AND closes outside of a price channel (in this case 10 SMMA high and low) but with option to change type of MA, it would be great if it could be programed only to alert when price also closes higher/lower than the previous candle and only alert once when this occurs. this would be on any time frame and any pair as well. Please see attachment to clarify... (see post # 1)

Thanks and may the new year be prosperous for all !!
Attached Images
File Type: gif chnlbrk.gif (16.3 KB, 567 views)

Last edited by bulegila; 01-01-2008 at 01:29 AM. Reason: Similar post
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
  #24 (permalink)  
Old 01-04-2008, 10:51 PM
Junior Member
 
Join Date: Dec 2006
Location: Poland
Posts: 3
Erniii is on a distinguished road
Has anyone tried shifting the MA 3 or 5 periods forward?? What are the results??
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
  #25 (permalink)  
Old 01-07-2008, 02:43 PM
radatats's Avatar
Senior Member
 
Join Date: Feb 2006
Location: NY
Posts: 266
radatats is on a distinguished road
Very good idea! I experimented with something like this a while ago after reading an e-book on a similar strategy and this inspired me to look at it again. I applied my MTF T3 lines along with stochastic and MACD and used a 34EMA instead.

On the charts, the blue lines are the 34EMA of the high and low. The yellow is always the 54 period T3 which represents 2X the current time frame. The Pink line is the next higher time frame 27T3 which represents the 34EMA on that time frame.

Use stochastic crosses and MACD zero line crosses to help with trade decisions

It definitely has a lot of potential and I am currently forward testing on a bunch of pairs. Trade rules are still pretty much as as you set them.

See if you like it. If not, disregard with no hard feelings.

Rad
Attached Images
File Type: gif gbpchf m5 channel.gif (72.8 KB, 426 views)
Attached Files
File Type: zip Rads Racing Stripe.zip (5.2 KB, 87 views)
__________________
Change everything till it works!!! Test, test, test...
Click here to see my trading...
http://letsgetreal.mt4stats.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
  #26 (permalink)  
Old 01-07-2008, 06:04 PM
Junior Member
 
Join Date: Jan 2008
Posts: 1
reparate is on a distinguished road
Identify Mystery Indicators?

In the image, below, is anyone able to identify the indicators being used?

I think the dots are the Parabolic SAR indicator. I tried a Pivot indicator, but it didn't look anything like this one. I do not have any idea what the 9 wavy lines are. Thank you for your interest.

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
  #27 (permalink)  
Old 01-07-2008, 06:08 PM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
river, synergy, farewell, etc using MAhilo channel breakout
Use The Moving Average Channel To Trade Stocks Objectively
here they wait for retracement:
Attached Images
File Type: jpg MA_Channel_Signals.jpg (20.9 KB, 426 views)
File Type: jpg MA_Channel_Refined.jpg (23.2 KB, 430 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
  #28 (permalink)  
Old 01-08-2008, 06:46 PM
radatats's Avatar
Senior Member
 
Join Date: Feb 2006
Location: NY
Posts: 266
radatats is on a distinguished road
Tracking this on the GBPJPY 5 min. So far so good.

Rad
Attached Images
File Type: gif gbpjpy m5 channel 1-8-07.gif (100.1 KB, 364 views)
__________________
Change everything till it works!!! Test, test, test...
Click here to see my trading...
http://letsgetreal.mt4stats.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
Reply

Bookmarks

Tags
moving average channel, Channel


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 calculate Moving Average of a Moving Average babarmughal Expert Advisors - Metatrader 4 4 05-31-2009 03:05 PM
EA Moving Average rodrigokaus Expert Advisors - Metatrader 4 10 02-11-2009 08:45 AM
donchian channel average.coder help savio12 Indicators - Metatrader 4 0 04-17-2007 09:09 AM
Moving Average Of CCI Kurka Fund Expert Advisors - Metatrader 4 1 11-29-2006 04:53 AM
moving average danu Expert Advisors - Metatrader 4 1 05-31-2006 05:23 AM


All times are GMT. The time now is 04:35 AM.



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