Hello Guest

Does anyone has a script based om fibonacci?

  • 1 Replies
  • 1861 Views
*

jeff4610

  • **
  • 6
  • +0/-0
    • View Profile
Does anyone has a script based om fibonacci?
« on: March 19, 2018, 01:22:10 am »
I am looking fir a script based on fibonacci.
Just a simple one. I want to use it as a model to work on.
Can anyone help? Thanks.

*

Seuntjie

  • *****
  • 593
  • +17/-3
    • View Profile
Re: Does anyone has a script based om fibonacci?
« Reply #1 on: March 19, 2018, 10:21:20 am »
I haven't seen a script specifically that use fibonacci, but you can use the built in fibonacci method to get the value ;
Quote
fibonacci(win) Returns: double. Parameters: 1: Win, bool. Indicates whether to process the bet as a win or a loss. Executes the built in fibonacci system as set up in the advanced mode. Returns what the next bet would be using said system
Code: [Select]
nextbet=fibonacci(win)


Alternatively, you can use a recursive method to calculate fibonacci. Here's the pseudo code for a recursive method for fibonacci:
fibo(int level)
if level is larger than 2
return fibo(level-1) +fibo (level-2)
else
return 1