| 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:
In my trading at support and resistence, for example, I think USD/JPY support at 103, so I opened buy at 103.20, and Sl at 103, for a tight 20pips SL. Now when SL is hit and price go back to 103.20, I'll open buy again with more lots. And if SL gets hit the 2nd time and price go back to 103.20 again, I'll buy again with more lots Now what I do manually now is whenever Sl gets hit, I place a buy order at 103.20. but I have to monitor the price to see if SL hit or not, it's tedious. So I want to program an EA that can do the work for me. The basic logic is: Whenever SL is hit, it opens a buy stop/sell stop order with more lots. I'm not sure if this is possible or not. I tried to code, but cannot figure out the code for example: if SL 103.00 hit for the first time, open stop buy order 103.20, lots*2; if SL 103.00 hit for 2nd time, open stop buy order 103.20, lots*3, and so on... Wonder if got such code or any advice. Thanks! |
|
|||
|
EA not taking some trades on live account
I have written an EA and have been using it on a NorthFinance demo account, it is taking trades correctly on the demo and has been for several weeks. I am trying to use this EA in my live mini account with IBFX (micro lots 0.01). It takes some trades correctly, but has missed taking several other trades that it should have taken. These trades were taken correctly on the demo account. There should have been no issues with slippage, etc., as it was not at a highly volatile time and the EA allows slippage up to 5 pips, and I can think of no other reason these trades should not have executed. There are no journal errors or anything like that, it is just not trying to take the trades. I understand that there can be differences between platforms, etc., I can assure you that is not the problem here, the conditions were absolutely correct for the trades to execute but they did not. I am using extremely small lot sizes just to see how it performs live. So far, not so good, but this is the first attempt to trade live with it, other than that I had attached it briefly previously just to make sure it would execute trades and it did so. If it didn't work at all I would understand that, but I don't understand why it takes some trades correctly and not others. I am very much a novice at all of this, so any help is greatly appreciated.
Is there anything I need to do to specify use with a mini or micro account? |
|
||||
|
Quote:
|
|
||||
|
Quote:
line..change also the Bid to Ask or Ask to Bid in the same line. or vice versa. Hope this helps. |
|
||||
|
Quote:
Something similar to it. |
|
||||
|
How to call a script? like "Close" which one build in MT4
![]() I want call a script when tow MA lines crossed, this script will execute a .exe file. I ready for the script, but don't know how to call it in my custom instrator. (I don't means drag it from navigator panel, I want call it by code) ![]() thanks, wish every body a happy weekend. |
|
|||
|
Quote:
|
|
||||
|
Quote:
bool SendFTP( string filename, string ftp_path=NULL) Sends the file to the FTP server set in the Tools->Options->Publisher tab. If the attempt fails, it retuns FALSE. The function does not operate in the testing mode. This function cannot be called from custom indicators, either. When SendFTP in custom indicators, it's can't work, but can in scripts. I tried your method, put my function into a .mph file, and save it into experts\include, it result error No. 4055. TestFTPInc.mqh int FTPTest() { SendFTP("shots\\" + Symbol() + "_5m_live.gif", NULL); Alert(GetLastError()); return(0); } In my custom indicators, I call it like if (IsNewBar()) { WindowScreenShot("shots\\" + Symbol() + "_5m_live.gif", 640, 480); FTPTest(); } it result error No. 4055. ![]() Thanks a lot. Have a happy weekend. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 04:22 PM |