- Search Crypto Craft
-
sangmane replied Feb 14, 2010pls find the attached sample EA that display cummulatice profit. 1. since the routine using candle time, convert your daily start hour to candle time, and use it as start hour. 2. there is a logic flaw at this code : if(TimeHour(Time[0])==startHour ...
Learning to Code Problem
-
sangmane replied Feb 14, 2010hi BigE, what the routine is supposed to do is : 1. time based on candle time, not computer's time 2. assume start hour = 9 3. when last tick time = 8.59.59 and current tick = 9.00, a call to this routine will give zero. it happens because the ...
Learning to Code Problem
-
sangmane replied Feb 13, 2010This routine will count cummulative profit of history orders start at user inputted hour double cummulativeProfit(int startHour) { int totalHistory = OrdersHistoryTotal(); double profit = 0; static datetime startTime=0; ...
Learning to Code Problem
-
sangmane replied Feb 11, 2010yes, it should be, if Bid in the form of ab.cd, SF should be cd well, you can get the answer by practicing. for example, you can make a script, put formula, output result by use Comment()
One little problem with an EA
-
sangmane replied Feb 11, 2010use MathMod() double val = MathMod(Price,1) if Price = 94.57, val = 0.57 so, the "last digit" = 0.57 val = MathMod(Price,0.01) if Price = 1.4325, val = 0.0025
One little problem with an EA
-
sangmane replied Feb 11, 2010Nice to know that you've got the idea of getting Nina cross signal from inside EA. Any chance sharing your EA?
Nina_Step_MA Indicator
-
sangmane replied Feb 11, 2010on forex-tsd.com. check thread named blessing and pipmaker. i've experimenting enough with this kind of system, it will blow your account sooner or later
Ea needed
-
sangmane replied Feb 11, 2010hi david, thank you for your comment on the above code
this envelope formula is interesting, it is different compared to BB, although both of them utilizing stdev.What I am doing wrong in mql4?
-
sangmane replied Feb 10, 2010If only you have tried it, you would know that Buy>0/Sell>0 indicate arrow value being exist or not, and not the two signal line. see the line index in iCustom, it is 2 and 3. from NinaStep indicator, line index 2 and 3 used by those blue and red ...
Nina_Step_MA Indicator
-
sangmane replied Feb 10, 2010hi stark, in mt4, as hanover said, istddev always use currency symbol. to use array other than that, we must istddevonarray at second loop. pls find the attached indy below
What I am doing wrong in mql4?
-
sangmane replied Feb 10, 2010double Buy = iCustom(NULL,0,"N_StepMA_1",7,1,0,500,False,2,1); double Sell = iCustom(NULL,0,"N_StepMA_1",7,1,0,500,False,3,1); if(Buy > 0) { //Send Buy Order } if(Sell > 0) { // SendSell Order }
Nina_Step_MA Indicator
-
sangmane replied Feb 9, 2010volatility = iCustom(NULL,0,"Volatility Indicator",Length,0,0);
Need help to include this indicator to ea
-
sangmane replied Feb 9, 2010Hi Fish, Sorry, I just get time to make some correction to your EA. The purposes of this EA only to show how to use ema as trailing stop. You must improve/tweak your buy/sell signal and ema period. If you don't want to use hard Take Profit, jusy ...
Using a moving average as a stop loss...
-
sangmane replied Feb 7, 2010hi fish, from your code, i see there is problems with your if-else logic if( Bid < ema13 ) { OrderClose(12345,1,Bid,3,Red); } else Print("Error opening BUY order : ", GetLastError()); it imply that if Bid<ema13 => close order. if not, Print "Error ...
Using a moving average as a stop loss...
-
sangmane replied Feb 7, 2010I just code the Renko-style NonLagMA (pic attached), 'cos I thought I can use it to avoid whipsaw. Original NonLagMA in Aqua-Magenta, while the "Renko-style" in DodgerBlue-Tomato. Brick size is 10 pips. Can't use too big brick zise, as this will ...
Any Coder willing to help ?
-
sangmane replied Feb 7, 2010hi tulip, a,b,c..,i => there are 9 indicator to work with!!!
each of them has their own rules. and at least 16 external params... i think it would be better if you concentrate first on, say, two indicators (stoch and macd?) and give the rules ...Need Help and Suggestion for this EA.