Forex
Google

Go Back   Forex Trading > Discussion Areas > Suggestions for Trading Systems
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-10-2005, 03:50 PM
Alex.Piech.FinGeR's Avatar
Alex.Piech.FinGeR Alex.Piech.FinGeR is offline
Senior Member
 
Join Date: Oct 2005
Location: Germany
Posts: 305
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, 65 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-11-2005, 03:01 PM
Alex.Piech.FinGeR's Avatar
Alex.Piech.FinGeR Alex.Piech.FinGeR is offline
Senior Member
 
Join Date: Oct 2005
Location: Germany
Posts: 305
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!
Reply With Quote
  #3 (permalink)  
Old 11-11-2005, 03:15 PM
forexts's Avatar
forexts forexts is offline
Administrator
 
Join Date: Sep 2005
Posts: 290
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!
Reply With Quote
  #4 (permalink)  
Old 11-11-2005, 03:21 PM
Alex.Piech.FinGeR's Avatar
Alex.Piech.FinGeR Alex.Piech.FinGeR is offline
Senior Member
 
Join Date: Oct 2005
Location: Germany
Posts: 305
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!
Reply With Quote
  #5 (permalink)  
Old 11-11-2005, 03:47 PM
forexts's Avatar
forexts forexts is offline
Administrator
 
Join Date: Sep 2005
Posts: 290
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!
Reply With Quote
  #6 (permalink)  
Old 11-11-2005, 04:40 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
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!
Reply With Quote
  #7 (permalink)  
Old 11-11-2005, 05:14 PM
forexts's Avatar
forexts forexts is offline
Administrator
 
Join Date: Sep 2005
Posts: 290
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!
Reply With Quote
  #8 (permalink)  
Old 11-12-2005, 08:07 AM
forexts's Avatar
forexts forexts is offline
Administrator
 
Join Date: Sep 2005
Posts: 290
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!
Reply With Quote
  #9 (permalink)  
Old 11-12-2005, 12:16 PM
Alex.Piech.FinGeR's Avatar
Alex.Piech.FinGeR Alex.Piech.FinGeR is offline
Senior Member
 
Join Date: Oct 2005
Location: Germany
Posts: 305
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!
Reply With Quote
  #10 (permalink)  
Old 11-20-2005, 06:09 PM
mangman mangman is offline
Senior Member
 
Join Date: Nov 2005
Posts: 169
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!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


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


All times are GMT. The time now is 09:56 AM.