Forex



Go Back   Forex Trading > Discussion Areas > Setup 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

 
 
Thread Tools
 
Old 04-15-2007, 11:10 AM
Junior Member
 
Join Date: Feb 2007
Location: Sandy, Utah USA
Posts: 20
leshammond is on a distinguished road
Adaptive Mov Avg w PRICE

Does anyone have an Adaptive Moving Average with PRICE input (High, Low, etc.)? Am working on a promising double AMA cross Expert Advisor optimized in TradeStation. Thanks for your help. Les
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!
 
Old 04-15-2007, 01:39 PM
deepdrunk's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 312
deepdrunk is on a distinguished road
Hi ,
this is what i have.Try to search on the forum i think there is more adaptiv moving average indicators here.
would you mind to post that system you want to make an EA for please.
Attached Files
File Type: mq4 AMA & AMA sig.mq4 (3.3 KB, 74 views)
File Type: mq4 AMA__AMA_sig_i.mq4 (3.3 KB, 52 views)
File Type: mq4 Fama.mq4 (3.7 KB, 76 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!
 
Old 04-15-2007, 01:41 PM
deepdrunk's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 312
deepdrunk is on a distinguished road
i think you can change easy in the code what type of price should be used in calculation of AMA (high,low,close...)
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!
 
Old 04-16-2007, 05:41 AM
Junior Member
 
Join Date: Feb 2007
Location: Sandy, Utah USA
Posts: 20
leshammond is on a distinguished road
AMA Double Cross

All I can give you are the parameters of the system at this time. It was backtested over 40 months on 15 minute bars on the GBPUSD and got $4.3 million in profit.
MAAXMAA - Price1 Low
MAAXMAA - EffRatioLength1 5
MAAXMAA - FastAvgLength1 17
MAAXMAA - SlowAvgLength1 10
MAAXMAA - Price High
MAAXMAA - EffRatioLength 6
MAAXMAA - FastAvgLength 5
MAAXMAA - SlowAvgLength 45
MAAXMAA - StartBal 20000
MAAXMAA - CommisPerMini Low 0
It was set to Buy and Sell on the crosses with no stops or take profit. Since TradeStation has no hedging within a currency pair, each Buy would close each Sell order and vise versa.
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!
 
Old 04-16-2007, 05:53 AM
Junior Member
 
Join Date: Feb 2007
Location: Sandy, Utah USA
Posts: 20
leshammond is on a distinguished road
Price

DEEPDRUNK:

How will the following work for Price and does it also need to be written into the indicator separately?
//---- input parameters
extern int Price = 0; //Apply to Price(0-Close;1-Open;2-High;3-Low;4-Median price;5-Typical price;6-Weighted Close)
Thanks, Les
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!
 
Old 04-16-2007, 06:18 AM
deepdrunk's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 312
deepdrunk is on a distinguished road
hi,

i don't know mq4 ,just a little but i think you should ask some expirienced coders like Codersguru (he also know tradestation easy lang) or linuxer,cja...
I don't know what are those setings from TS code.
Try to send PM (private message) to Codersguru because they could skip reading this thread.

You can also post the hole code from TS for AMA and they can translate it here.
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!
 
Old 04-16-2007, 07:15 AM
Junior Member
 
Join Date: Feb 2007
Location: Sandy, Utah USA
Posts: 20
leshammond is on a distinguished road
TS Code for AMA Cross

DEEPDRUNK:

I wonder how you feel about translating TradeStation (EasyLanguage) into MQL4. Below is the TS code that I used.

begin

Inputs:
Price1( Low ),
EffRatioLength1( 5 ),
FastAvgLength1( 17 ),
SlowAvgLength1( 10 ),
Price( High ),
EffRatioLength( 6 ),
FastAvgLength( 5 ),
SlowAvgLength( 45 ),
StartBal( 20000 );

Vars:
MAA1( 0 ),
MAA( 0 ),
CurrentBal ( 20000 ),
NumMiniLots ( 1 );
MAA1 = AdaptiveMovAvg( Price1, EffRatioLength1, FastAvgLength1, SlowAvgLength1 ) ;
MAA = AdaptiveMovAvg( Price, EffRatioLength, FastAvgLength, SlowAvgLength ) ;

If MAA1 Crosses Under MAA Then
Buy NumMiniLots contracts Next Bar at market;
If MAA1 Crosses Over MAA Then
Sell Short NumMiniLots contracts Next Bar at market;

CurrentBal = 20000 + netprofit;
NumMiniLots = 1 + intportion ( CurrentBal/5000);


end

Trades were made on a standard account using full size lots limited to 100. There needs to be Maximum Risk configurable in the EA and the EA also needs to be Take Profit, Hard Stop and Trailing Stop capable. There is also supposed to be code associated with the AMA that allows it to optimize it's numerical values as it is in a live forward trading mode.
Thanks for your help. Les

I have attempted to attach the full report below.
Attached Files
File Type: zip 40 Mo 15 Min abort MAAXMAA 4.3mmm 1.21 Trds 919.zip (694.8 KB, 33 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!
 
Old 04-16-2007, 08:16 AM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 336
jlpi is an unknown quantity at this point
Have noticed in your settings that FastAvgLength1( 17 ) is greater than SlowAvgLength1( 10 ).
I guess that it is not intended to use the indicator like that. Do you know what is the behaviour of the indicator in this case?
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!
 
Old 04-16-2007, 09:18 PM
Junior Member
 
Join Date: Feb 2007
Location: Sandy, Utah USA
Posts: 20
leshammond is on a distinguished road
Fast Slow

In TradeStation these are often reversed by optimization and seem to be OK like this.
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!
 
Old 04-17-2007, 05:12 PM
Junior Member
 
Join Date: Feb 2007
Location: Sandy, Utah USA
Posts: 20
leshammond is on a distinguished road
AMA new 30 Min 6 Mo Report

Here is a new TS report that got $768K in 6 months on 30 minute bars. Numbers don't hold up on longer time frames, but can be obtained through optimization.
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!
 

Bookmarks

Tags
adaptive
Thread Tools

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
MTF Price keris2112 Indicators - Metatrader 4 19 03-07-2009 08:53 PM
Adaptive Abdullah grid zappata Suggestions for Trading Systems 84 06-10-2007 09:20 AM
Price EACAN Questions 4 06-23-2006 10:27 AM


All times are GMT. The time now is 02:49 AM.



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