- Search Crypto Craft
-
sangmane replied Nov 20, 2009hi romano, if EA only utilizes single indicator (Parabolic SAR), i don't see any advantage to use multi time frame version. besides, it's very time consumed to test MTF indicator because it needs real time data and can't be tested using strategy ...
I code your Expert Advisors / Indicators
-
sangmane replied Nov 20, 2009hi, i make 3 modification : 1. added global variable named xBar int BarCount; int Current; bool TickCheck = False; int xBar; //added .... ... 2. record Bars value of Daily TF and save to xBar, after OrderSend Ticket = OrderSend(Symbol(), OP_BUY, ...
I code your Expert Advisors / Indicators
-
sangmane replied Nov 20, 2009pls explain more detail at what you mean by x trade per day. only open order X times in a day or only open an order if the number of open orders (excluding or including orders that is opened yesterday and still open today) don't exceed X?
I code your Expert Advisors / Indicators
-
sangmane replied Nov 19, 2009hi blackhand, regarding "Xtrade per day", do you mean how to count the number of open orders at the current day? you can use a loop through all opened orders and compare OrderOpenTime() and current time. for example: int OrderInDay() { int total = ...
I code your Expert Advisors / Indicators
-
sangmane replied Nov 19, 2009hi, the correction that i suggested is for solve the problem number 1 (email alert is not working. about alert that show up after every bar, let's see if i can solve it. be right back.. --------- mods attached
Need Developer Help, Fix Great Stoch Indicator, Compensation?
-
sangmane replied Nov 18, 2009hi blackhand, after seeing your ea, it seems you only open order when there is no opened order? maybe you could modify this condition checking if(OrderType() <= OP_SELL && OrderSymbol() == Symbol()) { IsTrade = True; to if(OrderType() <= OP_SELL && ...
I code your Expert Advisors / Indicators
-
sangmane replied Nov 18, 2009hi lct, email alert isn't working because that NewBar() in "if (SendAnEmail && NewBar()) " will always return false. look at this NewBar() function: bool NewBar() { static datetime lastbar; datetime curbar=Time[0]; if(lastbar!=curbar) { ...
Need Developer Help, Fix Great Stoch Indicator, Compensation?
-
sangmane replied Nov 3, 2009hmm, running EA to handle many pairs? what about: 1. put external parameter that define pairs to be used 2. make a loop that scan every chart/symbol i'm not sure if it works. honestly i have zero experience in trading. still don't have a courage to ...
Little help appreciated
-
sangmane replied Nov 3, 2009hello smjones, isInteger = (MathMod(n,1)==0) should do the trick...

Handy MQL4 utility functions
-
sangmane replied Nov 3, 2009pls find the modified code below. note that this EA will stop trade forever once tp/sl is hit. that's why you should have a rules as how the EA will open the next order
Little help appreciated
-
sangmane replied Nov 3, 2009hi all, i could make the proposed code, but the big question is, after stopping the trade then what next? for ex. then then This modification will stop the EA from opening new order once the price hit TP/SL. And there will be no order except the EA ...
Little help appreciated
-
sangmane replied Nov 2, 2009hi, in my humble opinion, there is no external parameter that define stop trade after TP/SL is reached. the first opportunity to catch the condition when price reached tp/sl : Maybe you should mention clearly, if you want to stop trade after TP, ...
Little help appreciated
-
sangmane replied Nov 1, 2009hi, if(fAngle > AngleTreshold) UpBuffer[i] = fAngle; else if (fAngle < -AngleTreshold) DownBuffer[i] = fAngle; else ZeroBuffer[i] = fAngle; NewLine_Buffer[i]=fAngle; // << SHOULD BE PUT HERE }
How to draw an additional line?
-
sangmane replied Oct 29, 2009hi, i've made a modification to your indi. i added one external parameter, named "IndiCount". the first time you put the indi on chart, set this parameter to 1 (IndiCount=1). then if you want to add it the second time, set IndiCount to 2. the third ...
make an indicator work when used twice on 1 chart?
-
sangmane replied Oct 29, 2009the longest EA i've ever seen there are 5857 lines of code

For Best Coder
-
sangmane replied Oct 28, 2009hi, i have changed alert to playsound on the code below added: lol, 2 reply in 1 minutes. actually, alert itself produced sound, except you disable in the mt4 option
Can anyone put a signal alert in this code?
-
sangmane replied Oct 27, 2009hi, pls find the modified code below.
Can anyone put a signal alert in this code?
-
sangmane replied Oct 27, 2009hi, pls find the attached code below. let me know if it works or not

Need help to tune indicator
-
sangmane replied Oct 26, 2009hi, it seems there is wrong logic with my last reply. the function first calculated lot size not from Lots variable, but from : lot=NormalizeDouble(AccountFreeMarg in()*MaximumRisk/1000.0,1); firstly, about NormalizeDouble(..,1), it will return ...
noobie question