Dynamic Levels Breakouts Strategy

Strategies are published here.

Moderator: admin

Dynamic Levels Breakouts Strategy

Postby Apprentice » Wed Oct 18, 2023 5:07 am

EURUSD H4 (10-18-2023 1205).png

Dynamic Levels Breakouts.lua
https://fxcodebase.com/code/viewtopic.php?f=17&t=74251
buy: price > upper line
sell : price < lower line

Dynamic Levels Breakouts Strategy.lua
(32.93 KiB) Downloaded 106 times


Please make sure to download the indicator again.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36495
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Dynamic Levels Breakouts Strategy

Postby ahmedalhosenyy » Wed Oct 18, 2023 8:03 am

Hello ,
could you make it price break above = buy , exit = close below 100% in the market !

thanks
ahmedalhosenyy
FXCodeBase: Initiate
 
Posts: 100
Joined: Wed Jan 05, 2022 12:58 pm

Re: Dynamic Levels Breakouts Strategy

Postby forexbutton » Wed Oct 18, 2023 2:46 pm

if Indicator.DATA[period]>Indicator.DATA[period-1]
then
if Direction then
BUY();
else
SELL();
end
LastEntry= Source:serial(period);
Return=true;
elseif Indicator.DATA[period]<Indicator.DATA[period-1]
then
if Direction then
SELL();
else
BUY();
end
LastEntry= Source:serial(period);
Return=true;
end




i think code has error.


my request is

price > upper line then buy
price < lowe line then sell
forexbutton
 
Posts: 7
Joined: Fri Feb 22, 2013 10:11 am


Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 96 guests