| 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 |
|
|||
|
Need Help on Straddle advisor
The advisor does not put the Straddle (buy and sell) in at the proper time on InterbankFX charts. It was programmed it to put in a Buy Stop and Sell Stop simotaniously at the TimeAHour, TimeAMin. Can someone help with the problem?? I am willing to give the strategy once fixed I use to one who fixes it that I use live trading now averaging 15 pips per day.
|
|
||||
|
Hi,
I have fixed your EA. Small bug was in spread calculation. Try to test and any proposal please. Igor
__________________
Let's improve trade skills together http://finance.groups.yahoo.com/group/TrendLaboratory |
|
|||
|
How to use this?
Could you please post instructions on how to use this?
What Time frequency should it be used on? 1 min, 5 min? What do the input parameters mean? Such as MagicNumber, TimaAHour, TimeAMin, GMTShift, LiveHour, LiveMin? I'm sorry, I am new to using the Expert Advisors. I have successfully compiled and attached your EA to a chart, but I can't seem to get it to make any trades. Thanks! |
|
|||
|
Hi Igor,
Sorry about the lag in testing it. It works on the times but I tried when I had it built to not put in more than 1 Buy Stop and Sell Stop when the time is hit. It puts in more when the S/L or T/P is hit or the pendings are deleted. I want it to put in 1 Buy Stop and Sell Stop at the time set then not put in anymore trades til the time comes around again. Thank you |
|
|||
|
MQL programming help if possible
Quote:
Sorry to trouble you but i am reallly stuck in this MQL programming thing and hope if you can help. How do i add a code into my MT4 EA if i only want the trades to be active for a certain time period of a day...say maybe only to trade from (broker time- 7pm to 9pm daily)? Many thanks in advance if you are able to help... Grateful, Ed |
|
|||
|
Quote:
Code:
if (UseHourTrade){
if(!(Hour()>=FromHourTrade&&Hour()<=ToHourTrade)){
Comment("Non-Trading Hours!");
return(0);
}
}
Code:
start() Code:
int start()
{
if (UseHourTrade){
if(!(Hour()>=FromHourTrade&&Hour()<=ToHourTrade)){
Comment("Non-Trading Hours!");
return(0);
}
}
Code:
extern bool UseHourTrade = True; extern int FromHourTrade = 19; extern int ToHourTrade = 21; |
|
|||
|
Quote:
I can't thank you enough! thanks! ![]() |
|
|||
|
mins with hours
Quote:
Thanks for your help.. The example you gave is from 1900hrs to 2100hrs. What if i would like to trade from 1930 to 2130hrs? Thanks in advance....sorry if my post is dumb...cos i am new to mql. warmest regards, ed |
|
|||
|
Favor needed
Hi NewDigital,
Thanks for your previous help again. Would like to ask you a favor again as i could not find the code to include if i want to close all trades at the end of the day like at 2355hrs? Thanks in advance. warmest regards, ed Quote:
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Straddle OCO | Money Duck | Expert Advisors - Metatrader 4 | 9 | 05-02-2007 04:46 AM |
| straddle news releases | crawfg75 | Metatrader 4 | 5 | 08-25-2006 06:35 PM |
| straddle news releases | crawfg75 | General Discussion | 1 | 08-24-2006 05:20 PM |
| What do you think about STRADDLE method? | dellan | General Discussion | 6 | 08-18-2006 06:59 PM |