Strategy makes no exits in EURUSD
Author: valdenilson
Creation Date: 7/19/2020 3:07 PM
profile picture

valdenilson

#1
Hi, I have this examples rules:

Buy at market
-Moving Average turns up -> 20

Sell at Stop Loss -> 0,05
Sell at profit Target -> 0,1

In stocks, BBSE3, is very good but in EURUSD, doesn't execute SELL, Only BUY.

What could be happening?
profile picture

Eugene

#2
1. Let's review the actual code behind. Click "Open code in new Strategy window" and then copy/paste the code here.
2. At what date(s) do you believe there should be exits?
profile picture

Cone

#3
Hi Valdenilson,
Do these things, I recommend both:

1. In Preferences > Backtest Settings, check the option at the bottom to Turn Off limit/stop rounding entirely. (See User Guide for explanation.)

2. In Tools > Symbol Info Manager, set up your Forex and Futures contracts with their proper tick size and decimals. From the images, it looks like you may have already done this.

Let us know if it solves it for you.
profile picture

valdenilson

#4
QUOTE:
1. In Preferences > Backtest Settings, check the option at the bottom to Turn Off limit/stop rounding entirely. (See User Guide for explanation.)

Yes man! It's solved my problem! Thank you so much!

Thanks Eugene!

: ))
profile picture

Eugene

#5
You should thank our expert Cone instead! :)

But we're glad you got it working!
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).