Page 1 of 1

2 bar supply and demand strategy

PostPosted: Fri Jan 25, 2019 6:52 am
by Apprentice
1.png

2.png

2 bar supply and demand strategy.lua
(106.45 KiB) Downloaded 550 times


Based on 2 bar supply and demand.lua
viewtopic.php?f=17&t=67299

Re: 2 bar supply and demand strategy

PostPosted: Fri Jan 25, 2019 8:58 am
by kankatrader
Hello

the following error is displayed

C:/Program Files (x86)/Candleworks/FXTS2/Strategies/Custom/2 bar supply and demand strategy.lua:70: C:/Program Files (x86)/Candleworks/FXTS2/Indicators/Custom/2 bar supply and demand.lua (-1, -1) : E19 - nil

Re: 2 bar supply and demand strategy

PostPosted: Fri Jan 25, 2019 11:34 am
by Apprentice
I forgot to mention, you have to install 2 bar supply and demand.lua

Re: 2 bar supply and demand strategy

PostPosted: Fri Jan 25, 2019 12:39 pm
by kankatrader
I have already installed the indicator

The strategy only works with the backtest tester. as soon as I activate the strategy in trading mode the error message comes up after some time

Re: 2 bar supply and demand strategy

PostPosted: Mon Jan 28, 2019 6:50 am
by Apprentice
Fixed.

Re: 2 bar supply and demand strategy

PostPosted: Mon Jan 28, 2019 12:28 pm
by kankatrader
it must have gone something wrong. That's no strategy anymore. Look at the content of the code

Re: 2 bar supply and demand strategy

PostPosted: Mon Jan 28, 2019 1:47 pm
by Apprentice
Try it now.
Make sure to re-download both files.