Previous candle RangeBreakOut Strategy

Strategies are published here.

Moderator: admin

Previous candle RangeBreakOut Strategy

Postby Apprentice » Fri Jul 08, 2022 11:43 am

EURUSD H1 (07-08-2022 1836).png

Open Long
Close > max(Close[-1], Open[-1]) + ABS(Close[-1] - Open[-1])/2
Price > MA

Close Long
Price < MA

Vice Versa for Short
Previous candle RangeBreakOut Strategy.lua
(32.42 KiB) Downloaded 117 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36478
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Previous candle RangeBreakOut Strategy

Postby Avignon » Mon Jul 11, 2022 5:30 am

What is ABS?
Avignon
FXCodeBase: Graduate
 
Posts: 287
Joined: Mon Nov 17, 2014 3:54 am

Re: Previous candle RangeBreakOut Strategy

Postby Apprentice » Tue Jul 12, 2022 12:56 am

math.abs
Return the absolute, or non-negative value, of a given value.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36478
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Previous candle RangeBreakOut Strategy

Postby Avignon » Tue Jul 12, 2022 1:16 am

Thanks!
Avignon
FXCodeBase: Graduate
 
Posts: 287
Joined: Mon Nov 17, 2014 3:54 am


Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 91 guests