| 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 (1) | Thread Tools | Display Modes |
|
||||
|
ops,i already found the source code.Got it from here
Waddah Attar Dayly CAMERILLA - MQL4 Code Base |
|
|||
|
hi all...
how to calculate the maximum volume for open a order whit my money... sample i have USD$1000 and 100:1 and nolimit for volume in open order... i need to know 1) maximum lots for open order in EURUSD with this money 2) maximum lots for open order in USDCHF with this money 2) maximum lots for open order in GBPCAD with this money if you have a code, itīs better... thanks for your help
__________________
Charles Adriano --------------------------- sorry, sorry, sorry for my English... |
|
|||
|
Can anyone code this 'simple' task?
I want to grab the highest and lowest values of an indicator over an entire chart. A while ago I tried what I thought should have worked, from within an EA, but it didn't.
(Sorry I don't have that attempt now to show you.) Any ideas? Big Be Last edited by Big Be; 06-27-2008 at 11:14 PM. |
|
|||
|
You could use an array then load it up with values. Then do a simple sort to move the highest value to the top. Then do the same for the lowest.
For example you'd compare item 2 to item 1. If 2 is higher put it in item 1. Then compare 3 to 1 and repeat to the end of the array. You'd just do the initial loading of the array in the init() function then with every new bar just compare the value to item 1 of the array. Hope that helps Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV ![]() ForexArea.com Users of Gap Trader from 'Forex-Assistant' MUST Read This |
|
|||
|
Hi
I need to write ea which will put awaitng order and do the following when it triggers: 1. Variables ("buy"/"sell",position1_lots,position2_lots,position3_lot s,entry_price,stoploss,TP1,TP2) 2.Open (buy/sell) trade with 3 positions at (entry_price) with (stoploss). 3.Close position_1 at (TP1) and move stop loss to breakeven for 2 left positions. 4.Close position_2 at (TP2) & let the last one ride or hit breakeven. I've programmed some indicators but i really dont have much idea how to write this robot. |
|
|||
|
Invisible TP/SL
Hello everyone.
I'm trying to code in an effective and reliable invisible stoploss, trailing stop and takeprofit into my EAs. So far, my code just looks for the bid/ask to equal the stoploss or takeprofit value. If the price equals that value, then close the trade. The problem I'm having is that sometimes the price seems to skip. There is no progressive movement of price. How do I then get around that problem? and make an invisible TP/SL which is guaranteed to close the trade where necessary? |
|
||||
:: the only way to close is NOT to use " == " in your code, instead everything have to close higher or lower then your price, use... higher " >= " price or lower " <= " price, yes price doesn't go like 1 2 3, it can jump from 1 to 5 in volatile market (like big news announcements), hope this helps a little Quote:
__________________
..4.Nov.08.. IN10TION newsReader v09.85 Lite - the best news reader on your chart
|
|
|||
|
Can anyone code this 'simple' task?
luxinterior and ajk,
Thanks. I tried one of those methods before (I will have to find what I did) and it worked great for price but not for an indicator. Have you successfully done it? The indicator doesn't matter, if could be any of MT4's built-ins. Big Be |
![]() |
| Bookmarks |
| Tags |
| candle time, CHinGsMAroonCLK, coders guru, expert advisor, forex, how to code, I_XO_A_H, mechanical trading, trading |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/554-how-code.html
|
||||
| Posted By | For | Type | Date | |
| Need an experienced programmer? - Page 2 | Post #0 | Refback | 09-24-2008 07:24 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 05:22 PM |