READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

3 EMA cross , is it possible ? (SQW File included)

8 replies

Tarwada

Subscriber, bbp_participant, community, course_strategyquant-x-course, 92 replies.

Visit profile

11 years ago #113081

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 : 

 

LsbgjpA.png

 

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

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

11 years ago #128249

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:

IF

 EMA(10) > EMA(25)

and

 EMA(10) crosses above EMA(50)

THEN

…

 

 

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.

Mark
StrategyQuant architect

0

murty

Customer, bbp_participant, community, sq-ultimate, 102 replies.

Visit profile

11 years ago #128273

May be just look for when the following hits minimum?

 

SQRT(  (EMA10-EMA25)**2  +  (EMA25-EMA50)**2  +  (EMA50-EMA10)**2  )

0

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

11 years ago #128286

that’s some advanced math there, I don’t follow it, but it could work 🙂

Mark
StrategyQuant architect

0

Tarwada

Subscriber, bbp_participant, community, course_strategyquant-x-course, 92 replies.

Visit profile

11 years ago #128527

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

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

11 years ago #128554

this is simple 🙂

 

Strategy Control: Last Order was Long / Short

Mark
StrategyQuant architect

0

Tarwada

Subscriber, bbp_participant, community, course_strategyquant-x-course, 92 replies.

Visit profile

11 years ago #128587

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 closed order as i wanted

0

Tarwada

Subscriber, bbp_participant, community, course_strategyquant-x-course, 92 replies.

Visit profile

11 years ago #128594

^ any answers ?  🙁

0

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

11 years ago #128829

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.

Mark
StrategyQuant architect

0

Viewing 8 replies - 1 through 8 (of 8 total)