| New signals service! | |
|
|||||||
| 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 |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Quote:
Auto pivot trade
__________________
Last edited by Linuxser; 03-19-2008 at 09:19 AM. |
|
|||
|
Find Trend based on last 2 bars
Hi all,
I'm just learning MQL and would like to know the easiest way to find out if a trend is going long or short based on the last 2 bars. For example, if the close price is 1.2345 for Close[2] and the close price is 1.2350 for Close[1], and the current Close price is 1.2360 for Close[0]. Would I do something like if(Close[2] < Close[1] && Close[1] < Close[0]) { } and do the same for a down trend but reversed Or is there a more professional way to do it. ![]() Thanks for your help Nudge |
|
|||
|
Quote:
Every coder has a different logic and different way to code their ideas. And the simpler is better! I think your code is quiet simple, I don't know how to make it simpler.
__________________
Need a professional MQL4 programmer? PM me |
|
|||
|
well Linuxser... i have this idea for code
PHP Code:
if yes, think, a lot of way for systems.... regards Last edited by DooMGuarD; 03-19-2008 at 07:00 PM. |
|
||||
|
Quote:
For the second array... ArraySetAsSeries? ArrayGetAsSeries?
__________________
|
|
|||
|
Quote:
Thanks for your reply, much appreciated. |
|
|||
|
Quote:
PHP Code:
|
|
|||
|
rigth Michel, but i donīt want to make an array to use in call arguments... i just need something similar to "series function" in an easy language...
Quote:
PHP Code:
if i make a return type as array i can translate EasyLanguage to MT easy... NOTE: XAverage is a exponentially weighted moving average |
|
|||
|
Mt4 Memory Usage problem with variables.
1) I am running mt4 with loops (in each loop I am assigning different values to variables and running again calculations)
2) After 20 loops I am getting values of 0 assigned to the variables instead of the values that I expect to receive and wrong calculation results. What can be the reason? Is it because of memory and how can I release the memory in mt4 ? |
|
|||
|
ticket value
Hi,
When an order is open it is assigned a ticket number. When this order is modified through an EA (i.e. the EA closes a portion of the trade) does the old ticket get changed to a new ticket number? I'm still a rookie at all this programming stuff so any help is greatly appreciated. Thanks Bob |
![]() |
| Bookmarks |
| Tags |
| close, eas, learn mql4 video, profit, reach |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Learning Cycles For New Traders | Dan7974 | General Discussion | 350 | 01-18-2008 06:04 PM |
| Learning to code for autotrading | GoatT | Metatrader Programming | 8 | 01-10-2007 08:55 PM |
| Self learning expert | mrtools | Expert Advisors - Metatrader 4 | 32 | 10-22-2006 05:29 PM |