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.
Size:
Color:
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.
Size:
Color:
Thankyou, Eugene my eyes are failing me.
rctrade
Size:
Color:
Glad I could assist.
Size:
Color: