Price MA Cross Strategy

Strategies are published here.

Moderator: admin

Price MA Cross Strategy

Postby Apprentice » Fri Mar 04, 2016 7:26 am

EURUSD H1 (03-04-2016 1247).png

Based on request.
viewtopic.php?f=27&t=62962

"Close Strategy after first Trade Executions" -Yes
Strategy will terminate itself after the first trade.
"Close Strategy after first Trade Executions" - No
Strategy will remain active after the first trade.


1. Algorithm
Open Long
Close + Delta> MA + Delta
Close[-1] + Delta <= MA[-1] + Delta

Open Short
Close - Delta< MA - Delta
Close[-1] - Delta >= MA[-1] - Delta

SignalMode== 2)
2. Algorithm

Open Long
Close > MA + Delta
Close[-1] <= MA[-1] + Delta

Open Short
Close< MA - Delta
Close[-1] >= MA[-1] - Delta

Price MA Cross Strategy .lua
(20.55 KiB) Downloaded 964 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Price MA Cross Strategy

Postby sk8ordie » Fri Apr 22, 2016 3:27 pm

how can i use tick ? (t1)

now i use m1 but i dont want to wait 1 min

error :155: The time frame must not be tick


thx!
sk8ordie
 
Posts: 12
Joined: Sun Feb 21, 2016 9:54 am

Re: Price MA Cross Strategy

Postby baleze » Mon May 23, 2016 1:08 am

Hi

I tried to backtest this strategy but it not takes any trade.

Thnx
baleze
 
Posts: 3
Joined: Sun May 22, 2016 6:10 am

Re: Price MA Cross Strategy

Postby Apprentice » Thu Jun 02, 2016 2:55 am

EURUSD H1 (06-02-2016 0923).png

Strategy is designed to open a trade.
Strategy will terminate itself after the first trade.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Price MA Cross Strategy

Postby Apprentice » Mon Jan 22, 2018 8:54 am

The strategy was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Price MA Cross Strategy

Postby enotikos » Sat Jul 10, 2021 12:41 am

Hi apprentice,
Can you add a parameter in this strategy?

Open trade :  (end of turn / live)

Thank you
enotikos
 
Posts: 20
Joined: Mon Jul 22, 2019 8:25 am

Re: Price MA Cross Strategy

Postby Apprentice » Mon Jul 12, 2021 12:58 pm

"End of Turn / Live" It is already available.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 19 guests