Exploration to find Bullish Stock based on Stochastic Crossover & 200 Day Moving Average

Dear All,

Kindly check the code below whether its correct. The conditions for buy are as follows:-

  1. Stock price has to close above the 200 day moving average.
  2. i have inserted Stochastic % D(8,3,3) which is represented by a yellow line & Stochastic %K(8,3) which is represented by blue line. Buy according to Stochastic crossover is show as screen shot below and in addition the Stochastic D & K should be below 20. I have not labelled every buy condition since this is to get an idea of my buy condition ok
    Stochastic
//Exploration to find bullish stocks based on 200 day MA & Stochastic CrossOver

MAvg200 = MA(C,200);

//Condition for buy

BC = Cross(C,MAvg200) AND StochK(8,3) >= StochD(8,3,3) AND StochK() AND StochD() < 20;

//Entry Price

EPBC = ValueWhen(BC,C);

Filter = BC;

AddColumn(EPBC,"Entry Price",1.2);

Awaiting for all your feedback. If any errors please point out to me.

Regards,

Sonjoe

@sonjoejh, this post is a duplicate of the below!

If you don't get a response to a question you can just simply add to the same post re-requesting someone to help you...

You need to respect the forum rules (you know this already from some of your previous posts)

In this post you wrote:

You should discover yourself whether your code is correct or not. If it's not then you need to try and figure it out yourself before asking other people to give up their time and expertise. I personally am happy to help you but only if you try and help yourself first!

From Tomasz: How to use this site

Before you ask a question in a community, try to find the answer elsewhere. This way you help yourself by stretching your mind and research abilities, and you learn things more thoroughly too. Plus it's good karma.

Always try these avenues first:

  1. Keep troubleshooting . Often we learn that it's easier to give up and ask for help rather than persisting—when we'd get our breakthrough if we'd only delay giving up for another 10 minutes. Respect yourself, go a little further before giving up.
  2. Google , of course. Try at least 3 or 4 searches before you give it up as hopeless.
  3. Mailing lists, forums, and newsgroups . Chances are, you're not the first person on the Earth to have this problem. Luckily we live in an age where we can search the past. Check out these resources next.
  4. Docs . Sometimes they seem impenetrable, but give it a whack. The more you learn, the easier the documentation will be to understand and decipher.
  5. Ask your question—but phrase it differently . Instead of asking your question directly, ask "Has anyone has seen this problem?" or "Can anyone point me in the right direction?" Likely as not, someone will have been there before, and they might know a blog posting or other resource which can help you out. This way, you show you are respectful of their time, and understand your problem is (probably) not unique.

When you do ask a question, try to provide as much background detail as possible.

Moderator comment: Actually these are NOT my words, they come from Skidmore College and I only quoted them as I could not write it better :slight_smile:

4 Likes

@TrendSurfer have said what i was going to tell you , with all due respect but i can not understand your request , you are the only supposed to know if the code is correct or not as you are the only person supposed to compare the result of your indicators with what you expect from it .. but asking other to check the code is quite strange !!!

Beside this there's nothing special in your code, your code have the same ideas and i already showed to you how express this in AFL and some members did the same thing so why are you keep posting the same questions over and over ?

In your first post , you said the purpose of your posts is to learn , you should know that this way will not lead you to your goal .. just think about it ......

4 Likes

Sebastian sorry.......please apologize for my mistake

No problem dude all what i meant that you need to depend on your self and exert more effort to improve your own skills

Most members here who helping others are so generous , knowledgeable and highly skilled ,( except me ) i am just newbie like you and i am not regualr member too :slight_smile:

So you have a great opportunity to learn from the best of the best in this field , Be a hunter and make the best use of it

1 Like

Thank You Sebastian ..ur really super