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
  #1 (permalink)  
Old 11-10-2005, 04:50 PM
Alex.Piech.FinGeR's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Germany
Posts: 307
Alex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud of
Question Problem with my EA Strategic Swiss


i have convert The Tradestation System ela file
LE BEAU C. - ' Crossbow Swiss Franc 1.0 ' Trading System.doc


help please my MQL EA code



--
Attached Files
File Type: mq4 Crossbow.mq4 (6.6 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!
Reply With Quote
  #2 (permalink)  
Old 11-11-2005, 04:01 PM
Alex.Piech.FinGeR's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Germany
Posts: 307
Alex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud of
Question

i not understand

this ELA code

-----Functions Used in the Code---------



{---Function MaxTradeClose---}



if marketposition <> 1 then MaxTradeClose=-999999;

if marketposition=1 and C>MaxtradeClose[1] then MaxtradeClose=C;





{---Function MinTradeClose---}



if marketposition <>-1 then MinTradeClose=999999;

if marketposition=-1 and C<MinTradeClose[1] then MinTradeClose=C;



{---Function MaxTradeHigh---}



if marketposition <> 1 then MaxTradeHigh=-999999;

if marketposition=1 and H>MaxtradeHigh[1] then MaxtradeHigh=H;





{---Function MinTradeLow---}

if marketposition <>-1 then MinTradeLow=999999;

if marketposition=-1 and L<MinTradeLow[1] then MinTradeLOw=L;
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
  #3 (permalink)  
Old 11-11-2005, 04:15 PM
forexts's Avatar
Administrator
 
Join Date: Sep 2005
Posts: 299
forexts has disabled reputation
marketposition == 1 --> Long
marketposition == 0 --> No trades
marketposition == -1 --> Short

MaxtradeClose == First Item of array MaxTradeClose == Value of that array for current bar

So .. MaxTradeClose (in ELA) = MaxTradeClose[0] (in mq4).

MinTradeLow, MaxTradeClose ... and those variables are array used for temporal calculation based on calculation.





Quote:
Originally Posted by Alex.Piech.FinGeR
i not understand

this ELA code

-----Functions Used in the Code---------



{---Function MaxTradeClose---}



if marketposition <> 1 then MaxTradeClose=-999999;

if marketposition=1 and C>MaxtradeClose[1] then MaxtradeClose=C;





{---Function MinTradeClose---}



if marketposition <>-1 then MinTradeClose=999999;

if marketposition=-1 and C<MinTradeClose[1] then MinTradeClose=C;



{---Function MaxTradeHigh---}



if marketposition <> 1 then MaxTradeHigh=-999999;

if marketposition=1 and H>MaxtradeHigh[1] then MaxtradeHigh=H;





{---Function MinTradeLow---}

if marketposition <>-1 then MinTradeLow=999999;

if marketposition=-1 and L<MinTradeLow[1] then MinTradeLOw=L;
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
  #4 (permalink)  
Old 11-11-2005, 04:21 PM
Alex.Piech.FinGeR's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Germany
Posts: 307
Alex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud of
MaxtradeClose == First Item of array MaxTradeClose == Value of that array for current bar

i not understand
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
  #5 (permalink)  
Old 11-11-2005, 04:47 PM
forexts's Avatar
Administrator
 
Join Date: Sep 2005
Posts: 299
forexts has disabled reputation
Quote:
Originally Posted by Alex.Piech.FinGeR
MaxtradeClose == First Item of array MaxTradeClose == Value of that array for current bar

i not understand
You have an array called MaxTradeClose.

MaxTradeClose[0] --> Value for current bar
MaxTradeClose[1] --> Value of previous bar
MaxTradeClose[2] --> Value of previous to previous bar ....

MaxTradeClose[0] in ELA can be reduced to MaxTradeClose
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
  #6 (permalink)  
Old 11-11-2005, 05:40 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
Unhappy Are the arrays your problem?

Quote:
Originally Posted by Alex.Piech.FinGeR
MaxtradeClose == First Item of array MaxTradeClose == Value of that array for current bar

i not understand
Review lesson 11:

Quote:
Arrays:

In our life we usually group similar objects into units, in the programming we also need to group together the data items of the same type. We use Arrays to do this task.
Arrays are very like the list tables, you group the items in the table and access them the number of the row. Rows in the Arrays called Indexes.

To declare an array you use a code like that:
int my_array[50];
Here, you have declared an array of integer type, which can hold up to 50 items.

You can access each item in the array using the index of the item, like that:
My_array[10] = 500;
Here, you have set the item number 10 in the array to 500.

You can initialize the array at the same line of the declaration like that:
int my_array[5] = {1,24,15,66,500};
In MQL4:
MaxTradeClose[0] is the first item in the array MaxTradeClose.
MaxTradeClose[1] is th second item.
MaxTradeClose[2] is the third item. etc..


But in EasyLnaguage the Array starts with the index 1 so,
MaxTradeClose[1] is the first item in the array MaxTradeClose.
MaxTradeClose[2] is th second item.
MaxTradeClose[3] is the third item. etc..


So, what's your question?
__________________
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
  #7 (permalink)  
Old 11-11-2005, 06:14 PM
forexts's Avatar
Administrator
 
Join Date: Sep 2005
Posts: 299
forexts has disabled reputation
Quote:
Originally Posted by codersguru
Review lesson 11:



In MQL4:
MaxTradeClose[0] is the first item in the array MaxTradeClose.
MaxTradeClose[1] is th second item.
MaxTradeClose[2] is the third item. etc..

But in EasyLnaguage the Array starts with the index 1 so,
MaxTradeClose[1] is the first item in the array MaxTradeClose.
MaxTradeClose[2] is th second item.
MaxTradeClose[3] is the third item. etc..

So, what's your question?
This is the question:

MaxtradeClose=C;

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
  #8 (permalink)  
Old 11-12-2005, 09:07 AM
forexts's Avatar
Administrator
 
Join Date: Sep 2005
Posts: 299
forexts has disabled reputation
Hello Alex, do you understand now the code?

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
  #9 (permalink)  
Old 11-12-2005, 01:16 PM
Alex.Piech.FinGeR's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Germany
Posts: 307
Alex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud of
Thumbs up

Thanks all

yes i understand
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
  #10 (permalink)  
Old 11-20-2005, 07:09 PM
Senior Member
 
Join Date: Nov 2005
Posts: 168
mangman is on a distinguished road
Alex,
Did you manage to write an EA and test the strategy?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forex-Swiss Boker hellkas Metatrader brokers 10 03-12-2009 04:48 PM
Swiss Ephemeris .dll Akuma99 Indicators - Metatrader 4 1 08-31-2006 07:36 AM
Strategic Tester Backtesting Issue trohoang Expert Advisors - Metatrader 4 0 08-10-2006 11:15 PM


All times are GMT. The time now is 11:04 PM.



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