3 EMA cross , is it possible ? (SQW File included)
8件の返信
hello everyone , last week i’ve tried to turn this strategy into indicator http://www.forexstrategiesresources.com/trend-following-forex-strategies/1-forex-profit-system/
but i don’t understand why my indicator missed a lot of the trades
see here :

it does generate signals , but not all of the signals
how to make an indicator based on that strategy
i’ve attached the .SQW file , can anyone modifies the file to help me to understand the process ?
and finally , can someone help me here too ? https://strategyquant.com/forum/topic/2553-buy-and-sell-depending-on-custom-indicator-signals/
thanks for such a great software
0
There’s one logical error – in your rules the signal is valid only if EMA(10) crosses above EMA(25) and at the same time EMA(10) crosses above EMA(50).
You have to realize that crossing means exactly that one line crosses the other. It is only rarely that these conditions are true at the same bar.
Your condition will be not valid of for example EMA(10) crosses above EMA(25), and then 1-2 bars later EMA(10) crosses above EMA(50).
I’d rewrite it like this:
もし
EMA(10) > EMA(25)
そして
EMA(10) crosses above EMA(50)
それから
…
EMA(25) is faster than EMA(50) so the first cross should always happen before the second one.
So you can only check if the cross already happened in the past.
マーク
StrategyQuantアーキテクト
0
May be just look for when the following hits minimum?
SQRT( (EMA10-EMA25)**2 + (EMA25-EMA50)**2 + (EMA50-EMA10)**2 )
0
that’s some advanced math there, I don’t follow it, but it could work 🙂
マーク
StrategyQuantアーキテクト
0
oh my god , im just in love with this program day after day <3 😆
now how to checkout the last CLOSED position type ?
so my EA will only sell and after that will only look for buy :unsure:
0
this is simple 🙂
Strategy Control: Last Order was Long / Short
マーク
StrategyQuantアーキテクト
0
this is simple 🙂
Strategy Control: Last Order was Long / Short
but the program says (returns the type of last active (not pending) order)
so this will return the last active order not the last 閉鎖 order as i wanted
0
^ any answers ? 🙁
0
Last Order returns the type of last finished order.
I assume you don’t want to check type of last pending order that was never triggered and canceled.
マーク
StrategyQuantアーキテクト
0
8件の返信を表示中 - 1 - 8件目 (全8件中)