Stochastics Indicator
-
Hi,
I can't find the answer here..
I would like to make a buy entry when the Stochastic k and d crosses belowe the 20 level line and sell when the k and d crosses above the 80 level line. how do I do that? -
Hi there... I'm having some difficulty creating a simple EA based on Stochastics. The problem I'm having is that the EA is taking trades to early. I want it to take trades based on the stochastic closing above 80 or below 20. Should be as simple as using a condition block, Left side choosing Stochastic 5,3,3/ Not really sure about the MA Method to choose as the properties under Stochastics in MT4 doesn't give you that option, as for Price Field, I'm assuming I want Close/Close so the EA reads the value of the main line at the last bar closed, and Candle ID I'm assuming is how far back I want it to read the Stoch's Main Line Value.... So by putting 1, I think it reads the value of the Stochs main line of the last closed bar. On the right hand side, I am comparing it with a numeric value. What it's doing is sometimes taking trades when the Stochastic is between the 80 and 20 and I can't figure out why. I want it to close a trade after a 15 pip TakeProfit which is working fine, If the MainLine of the stoch crosses over the 80 for a buy and 20 for a sell, or if the stoch main line crosses it's signal line before either of the other 2 happen. I'm using it on gbp/Usd pair 5 minute chart. If you could take a look at my project and help me out please. Thanks!
-
Your logic seems to be fine.. Maybe the stochastics is repainting, try visual mode to find out?
-
I always use visual mode in the strategy tester. It doesn't seem to be repainting. I had a coder off the MQL5 website make what I wanted and it's entries are perfect. But I would like to make one with this so I can add things myself when I want.
-
I think that all my signals are correct: http://prntscr.com/bxgqc3
Show me how it looks like for you -
Thanks... I finally got it to work correctly. I did post another question about moving my TP automatically after a certain event. I'll wait for a reply on that post. Thanks again!