Why won't my Strategy generate any trades?
Author: rctrade
Creation Date: 3/13/2019 11:18 AM
profile picture

rctrade

#1
Eugene, I tried to build my first simple strategy to test. The logic was simple,
Buy
Price greater than 200 DEMA - used Price is <x% above indicator, where X is 1
CMF > 0 - used Indicator above a value
VI+ > VI- Indicator above indicator
Sell - reverse of above

When I ran the strategy, it didn't generate any trades - it did show the buy and hold results.

I must be missing something very basic here. Wonder if you could point me in the right direction.
thanks
rctrade

CODE:
Please log in to see this code.
profile picture

Eugene

#2
Ralph,

When creating topics kindly aim to summarize your problem in a descriptive manner. Which topic title is well thought out: "Strategy question" (was) or "Why won't my Strategy generate any trades" (is)?

QUOTE:
When I ran the strategy, it didn't generate any trades - it did show the buy and hold results.

It's because of comparing VM+ to itself on the same bar:
CODE:
Please log in to see this code.

The value cannot be greater than it is now. What you intended to write is:
CODE:
Please log in to see this code.


Condensed version:
CODE:
Please log in to see this code.
profile picture

rctrade

#3
Thankyou, Eugene my eyes are failing me.
rctrade
profile picture

Eugene

#4
Glad I could assist.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).