Support_Resistance_Lines

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Re: Support_Resistance_Lines

Postby Apprentice » Tue Feb 25, 2020 10:00 am

Your request is added to the development list.
Development reference 778.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 25413
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Support_Resistance_Lines

Postby Apprentice » Wed Feb 26, 2020 5:41 am

I don't understand what changes are needed.
Can you provide a bit more detailed request?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 25413
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Support_Resistance_Lines

Postby yolerap » Wed Feb 26, 2020 2:01 pm

Yes sure,

Look attachment :

There are 4 red lines resistances and 1 green support line.

Conditions to close the positions/open a new one :
We need a second green support line to open buy position.
If I had a short position and there is no second green support line, don't close the current position.

So, if there are 2 red lines, open a short position
If there are 2 green lines, open a buy position

I hope it's possible for you,

Thank you
Attachments
suppres strategy.PNG
yolerap
 
Posts: 40
Joined: Sat Aug 17, 2019 9:44 pm

Re: Support_Resistance_Lines

Postby Apprentice » Fri Feb 28, 2020 6:04 am

Support_Resistance_Lines.lua
(11.92 KiB) Downloaded 96 times

Support_Resistance_Lines_strategy.lua
(137.25 KiB) Downloaded 112 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 25413
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Support_Resistance_Lines

Postby yolerap » Fri Feb 28, 2020 12:24 pm

Thank you but it doesn't work,

This message appear ( look attachement ) when I test the strategy ( backtesting and simulation ).
I downloaded the latest version of the indicator.

Could you repear this please ?
Attachments
Failtest.PNG
yolerap
 
Posts: 40
Joined: Sat Aug 17, 2019 9:44 pm

Re: Support_Resistance_Lines

Postby MC. Trend Trader » Fri Feb 28, 2020 3:25 pm

Hello

I have increased the number of position counts to 4.
The positioncount code is incomplete and is not displayed correctly.

Best regards
Attachments
Support_Resistance_Lines_strategy (Version 2).lua
(137.25 KiB) Downloaded 73 times
MC. Trend Trader
FXCodeBase: Initiate
 
Posts: 103
Joined: Sun Jul 05, 2015 12:36 am

Re: Support_Resistance_Lines

Postby Apprentice » Sun Mar 01, 2020 3:55 pm

Your request is added to the development list.
Development reference 792.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 25413
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Support_Resistance_Lines

Postby Apprentice » Mon Mar 02, 2020 2:27 pm

It looks like the latest version of the indicator is not installed properly.
Try to refresh your browser and re-download afterwords.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 25413
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Support_Resistance_Lines

Postby yolerap » Tue Mar 03, 2020 1:56 pm

Hi,

I'm sorry but it doesn't work with the latest version.. And I tested too the version 2 posted by Mc Trend Trader, it doesn't work too. These strategy was tested in backtesting and simulation, the same error message appear like my precedent post.
Could you repear this strategy pls ?
yolerap
 
Posts: 40
Joined: Sat Aug 17, 2019 9:44 pm

Re: Support_Resistance_Lines

Postby Apprentice » Wed Mar 04, 2020 5:36 am

Your request is added to the development list.
Development reference 817.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 25413
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 19 guests