Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 28,579
» Latest member: statikhunc7
» Forum threads: 1,541
» Forum posts: 8,071

Full Statistics

Online Users
There are currently 277 online users.
» 0 Member(s) | 277 Guest(s)

Latest Threads
Gekko development status ...
Forum: Announcements
Last Post: kontho
7 hours ago
» Replies: 1,010
» Views: 938,147
Gekko with malware spotte...
Forum: Announcements
Last Post: adeldoors
Today, 06:45 AM
» Replies: 192
» Views: 171,024
Gekko 0.6 released
Forum: Announcements
Last Post: Pharagon
11-23-2024, 10:13 AM
» Replies: 122
» Views: 269,856
An official Gekko service...
Forum: Announcements
Last Post: drivemad2
11-22-2024, 07:24 AM
» Replies: 103
» Views: 190,464
New Gekko UI in the works
Forum: Announcements
Last Post: clduplicateremover
11-18-2024, 08:21 PM
» Replies: 174
» Views: 228,548
How to Soft Reset or Hard...
Forum: General Discussion
Last Post: lucifar
10-07-2021, 07:18 PM
» Replies: 22
» Views: 53,066
How to add Binance Future...
Forum: Technical Support
Last Post: Xavier32
10-07-2021, 02:20 PM
» Replies: 47
» Views: 108,476
Bittrex Configuration hel...
Forum: Bittrex
Last Post: yirzolusto
10-07-2021, 07:39 AM
» Replies: 6
» Views: 19,136
[Question] Why does gekko...
Forum: General Discussion
Last Post: cryptocurrency0
10-06-2021, 01:16 PM
» Replies: 16
» Views: 45,864
a couple of technical Que...
Forum: Technical Support
Last Post: mtom78632
10-06-2021, 11:08 AM
» Replies: 25
» Views: 58,614

 
  Last Sell , last Buy
Posted by: mauroprojetos - 10-15-2018, 05:02 PM - Forum: Strategy Development - Replies (1)

People need help, I'm trying to develop a strategy, but for this I need to make the last sell price or the last buy.
Would anyone have any tips?


  EMA tradingview to Gekko
Posted by: mikealkeal - 10-14-2018, 07:37 PM - Forum: Technical Discussion - Replies (2)

Hello,
How to translate tradingview Pinscript :

Code:
a = ema(b, c)


To Js for Gekko in a strategy


I found this in documentation :

Code:
method.init = function() {
 var weight = 10;

 // add the indicator to the strategy
 this.addIndicator('myema', 'EMA', weight);
}

method.check = function() {
 // use indicator results
 var ema = this.indicators.myema.result;

 // do something with macdiff
}

do I have to write 
Code:
method.init = function() {
 var b = 10;
    var c = 10;

 // add the indicator to the strategy
 this.addIndicator('myema', 'EMA', b, c);
}

thanks for your help.

Heart


  Stops importing data
Posted by: Rabberzzz - 10-14-2018, 06:13 PM - Forum: Technical Support - No Replies

The data is want to get imported doesn't do this 100%
For example I was importing data from Kraken EUR/ETH. 
The time period I set was 2018-01-14 to 2018-10-14.
unfortunately all of the sudden it said the importing is done and it did got me only 4 months and 2 weeks instead of almost 9 month.
Why is this happening and how can it be resolved? 
Does anyone else has this same problem?


  backtesting balance after roundtrip
Posted by: slav - 10-14-2018, 05:36 PM - Forum: Strategy Development - Replies (3)

Hi,
I'm wondering how, during backtest, can I keep track of the current balance so i can put it in a variable and use it for other calculations?


  need help whit an indicator
Posted by: fraser - 10-11-2018, 11:14 PM - Forum: Strategy Development - Replies (4)

hi, anyone can write this indicator on javascript? work great but i don't have any knowledge on javascript

if we want i can post the link of the tradingview page of the script

thanks a lot




Code:
study(title="WaveTrend with Crosses [LazyBear]", shorttitle="WT_CROSS_LB")
n1 = input(10, "Channel Length")
n2 = input(21, "Average Length")
obLevel1 = input(60, "Over Bought Level 1")
obLevel2 = input(53, "Over Bought Level 2")
osLevel1 = input(-60, "Over Sold Level 1")
osLevel2 = input(-53, "Over Sold Level 2")

ap = hlc3
esa = ema(ap, n1)
d = ema(abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * d)
tci = ema(ci, n2)

wt1 = tci
wt2 = sma(wt1,4)

plot(0, color=gray)
plot(obLevel1, color=red)
plot(osLevel1, color=green)
plot(obLevel2, color=red)
plot(osLevel2, color=green)

plot(wt1, color=green)
plot(wt2, color=red)
plot(wt1-wt2, color=blue, style=area, transp=80)
plot(cross(wt1, wt2) ? wt2 : na, color = black , style = circles, linewidth = 3)
plot(cross(wt1, wt2) ? wt2 : na, color = (wt2 - wt1 > 0 ? red : lime) , style = circles, linewidth = 2)
barcolor(cross(wt1, wt2) ? (wt2 - wt1 > 0 ? aqua : yellow) : na)


Smile Slippage and Spread: how to get them
Posted by: Piff_Sara - 10-11-2018, 10:24 AM - Forum: General Discussion - Replies (7)

Hey guys!


I know it's a roucky question, but backtesting is a serious thing and i don't really want to set my papertrade with random values.
I read a bunch of thread on here, but i've never found anybody discussing about how to set up slippage and spread (in case there are any, pls tell me Smile )   

Hence the question is: 
how do you guys usually set those 2 values? 
do u get them from the internet (even if i didn't find any website from which get them) or do you calculate them by yourself?


Cheeeers!


  Backtesting result no data display Please help
Posted by: luvinrafael@gmail.com - 10-10-2018, 01:49 AM - Forum: Feature Requests - Replies (2)

I'm running Gekko on Linux mint 19, 32 bit and Windows 8.1, 64 bit

[Image: Captura%2Bde%2Bpantalla_2018-10-09_11-42-30.png]
[Image: Captura%2Bde%2Bpantalla_2018-10-09_11-42-58.png]



Attached Files
.png   Captura de pantalla_2018-10-09_11-42-30.png (Size: 65.11 KB / Downloads: 7)
.png   Captura de pantalla_2018-10-09_11-42-58.png (Size: 53.49 KB / Downloads: 7)

  How to get previous DAILY candle high value when on 5 min candles?
Posted by: streetlaw - 10-09-2018, 09:52 AM - Forum: Strategy Development - Replies (1)

Pretty much everything but this part I'm clear on, but I can't seem to figure out how to get and display the previous day's high when using 5 minute candles for my strategy. Any ideas?


  Long/short after a period of time.
Posted by: slav - 10-08-2018, 12:32 AM - Forum: Strategy Development - Replies (3)

Hi everyone. I was searching for a couple of days now, and I can't find a solution to this. Basically I want to make a trade after a specified amount of time has passed from the last trade. I'm new to this bot, so sorry for any noobish behavior :) How should Ii approach this? I'm also trying to find documentation of the functions etc. in gekko . Something more detailed than the one found on gekko's page. Not a lot of material to learn from (yet?). Any advice in the matter will be appreciated. Right now I'm testing a strategy based on EMA's, which work good or bad depending on market conditions and simply swapping "long" ans "short" orders with each other inside the code. In moderate volatility for example works good, and gets hefty losses during high volatility and vice versa. Tried stop losses, but they really do more bad than good to the strategy making it erratic and unpredictable. Noticed that the few big losing positions last much much longer than the winning ones, so I thought if I was able to make a position last no longer than say 12 hours it might act as a stop loss in this case. Thank you in advance for any help.


  Deleting imported data
Posted by: runein - 10-05-2018, 12:59 PM - Forum: Technical Support - Replies (3)

Hello.

I have imported 2 files of backtestdata from Binance, 3 months and 6 months. How do I delete the 3 months from Gekko?