OptiPie / tradingview-optimizer-extension

OptiPie is an open source strategy optimizer automation tool for TradingView written in js.
https://optipie.app
GNU General Public License v3.0
32 stars 17 forks source link

Would be great to optimize negative values for short trades. For example: If the angle of inception is between 0 and -3 degrees. #9

Closed Strazdas10 closed 10 months ago

AtakanPehlivanoglu commented 1 year ago

Hello @Strazdas10 ,

Thanks for the improvement request, It is a good point that some of the strategies may require negative values hence I will take a look at this and start implementing this improvement.

I will share the updates here.

Strazdas10 commented 1 year ago

Hello,

Great. Also it would be great to have an ability to skip the parameter, it would be faster then changing the order of inputs in the pinescript.

The other function would be great to load best performing parameters automatically after the optimization.

Good luck.

On Mon, 20 Mar 2023 at 00:37, Atakan Pehlivanoğlu @.***> wrote:

Hello @Strazdas10 https://github.com/Strazdas10 ,

Thanks for the improvement request, It is a good point that some of the strategies may require negative values hence I will take a look at this and start implementing this improvement.

I will share the updates here.

— Reply to this email directly, view it on GitHub https://github.com/OptiPie/tradingview-optimizer-extension/issues/9#issuecomment-1475435921, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6MBISUJB3VVOVM6XP7SCXLW46KDBANCNFSM6AAAAAAV4ZQUNI . You are receiving this because you were mentioned.Message ID: @.***>

--

Best Regards

Laimonas Staskus

Jaunzemu iela 4-14. Marupes Novads LV-2167, Riga, Latvia

Mob: +371 22023890

AmmarHaddadi commented 1 year ago

for short trades you can use the negative value of an input for example you need to test values from -3 to 0, you can use something like this

value = input.int(0, 'description here', minval=0, maxval=3)
value := -value

and in the strategy optimizer chose the start value as 0, the end values as 3, and the step as you wish

AtakanPehlivanoglu commented 10 months ago

Hi @Strazdas10 and @AmmarHaddadi,

Sorry for the big delay, this feature is now published on the Chrome Web Store and will be available for use as v.1.0.4 very shortly.

Happy optimizations!