Is there anyone that can fix a script that I have. I think it is almost there but there is one problem. I want the program to compare two emas. the 2 and the 8. I want to buy on the candle after they cross. Then hold till the lines cross again or until my take profit or trailing stop is hit. Once it has bin hit, dont buy again until the lines cross in the other direction and then do it over again but in the other direction. The program currently does this. The formula is that if the 2 ema is less than the 8 ema then buy short. I stay in the trade until my stop loss is hit or until I take my profit.. Once it kicks me out it then checks the formula agian and buys short again. So basically I am always in a trade. I want it to wait until they cross to buy again. Is there anyone that can help.
- #2
- Jun 3, 2008 7:05pm Jun 3, 2008 7:05pm
- Joined Nov 2007 | Status: Trying manual mode again | 2,210 Posts