- Search Crypto Craft
-
sangmane replied May 17, 2010pls find the attached sample EA. this EA will put buystop at SMA(100) if price below SMA(100), reverse for sell attached pic show how EA modify open price when SMA change its value. but the modifying doesn't occurs at every tick, because there is ...
OrderModify Error
-
sangmane replied May 17, 2010see my second post, it should be: if(MathAbs(entry-OrderOpenPrice()) > StopLevel) Make sure you have assign StopLevel variable : StopLevel = MarketInfo(Symbol(),MODE_STOPLEVEL);
OrderModify Error
-
sangmane replied May 17, 2010You're right, I misread the problem as a Buy order instead a Buy Stop order. To overcome the price comparison problems, you can try the following function: bool isEqual(double d1, double d2) { ...
OrderModify Error
-
sangmane replied May 17, 2010after re-read your problems and seeing that you got ordermodify error, there is a possibilities the current price was too close to entry/entry1 value. so, before send an ordermodify command, do the following checking: //get StopLevel value: double ...
OrderModify Error
-
sangmane replied May 17, 2010Good point CodeMeister! This is the first time I read that old saying. Regarding non repaint ZZ, my advice is ask hayseed. He has many experiences in modifying and improving ZZ indicator. there is a thread in tsd which he made a great contribution ...
I Have Zig Zag Non Repaint Indicator!! A Programmer Needed To Optimize It!
-
sangmane replied May 17, 2010Hi bauer, I assume your entry and entry1 is based on what price shown on chart, which is Bid value. Sell's open price is in Bid, and Buy's open price is in Ask. So to get a proper comparison, you should compare Buy's order open price with ...
OrderModify Error
-
sangmane replied May 14, 2010Whiteash, seeing that your strategy triggered after candle close and uses H1 or higher TF, you can backtest it by using trading simulator (or a simple blank EA) to simulate price movement at any TF and any pair you want. Regarding forward testing, ...
Would a script be the best option?
-
sangmane replied May 14, 2010thanks for the strategy. will take a look at it

Indicator to read from file
-
sangmane replied May 14, 2010Imo, it's best done using EA. EA will take action for every tick, while Script will only take action once you load it. Although you can utilize while() loop, it will consume your cpu processing time. You can use global variable as a flag to tell EA ...
Would a script be the best option?
-
sangmane replied May 14, 2010i've modified it. indicator attached below will automatically calculate the appropriate shift amount based on the latest date in the data pls share how you use this planetary strategy
Indicator to read from file
-
sangmane replied May 14, 2010maybe the second backtest performed with a worse spread? post your ea so we can debug it together
Backtesting EA and closing trade at ma
-
sangmane replied May 13, 2010yes, it is possible to make an 100.00% accurate indicator that show up/downtrend and ranging based on your definition of up/downtrend and ranging. will the indicator give you 100.00% profitable trade is another case.
trend and range indicating indicator
-
sangmane replied May 13, 2010Here is my thought: 1. Trader A forward-test a strategy starting from 2010.04.01 till 2010.04.30. 2. At 2010.05.01, Trader B back-test the same strategy using historical data from 2010.04.01 - 2010.04.30. Assuming the history data are valid for the ...
A Simple London Breakout
-
sangmane replied May 13, 2010lol... just arrived at my home sweet home. whats up with your fibs thingy
Why does Automated trading never seem to work?
-
sangmane replied May 13, 2010If I were them, I will switch my business from broker to trader, and use that "extremely profitable robot" to trade my capital
Why does Automated trading never seem to work?
-
sangmane replied May 13, 2010here the modified EA. orig EA assume 4 digits broker, while EA below accept both 4/5 digits broker. so, the input for BreakEven and ProfitLock always in Pip. I also added the checking of min distance between current price and the new SL to avoid ...
Breakaven + (Certain Pips)
-
sangmane replied May 12, 2010check the following: 1. atached on daily chart, because the date on first column is a date without hour/minutes 2. the high/low column (2nd and 3rd column) has a value that visible on the chart. if you fill 2nd/3rd column with value = 97.89 and ...
Indicator to read from file
-
sangmane replied May 12, 2010below are two files, the indicator that will draw two lines based on csv data, and the sample csv file that contain 16 rows of data. save csv file to expert/files folder. the important thing is the first column of csv data must contain date in the ...
Indicator to read from file