Hello. I am very new to the gekko.
I have Tradingview pinescript code but I am poor at javascript.
Can someone change below code to Gekko strategy?
Thank you.
--------------------------------------------------------------
//@version=2
study(title="MODIFIED ADX", shorttitle="MODIFIED ADX", overlay=true)
//
//VAR
lenadx = 14 //DI Length
lensig = 14 //ADX Smoothing
limadx = 18 //ADX Green Active
//CACULATION
up = high - high[1] //ORIGINAL : up = change(high)
down = low[1] - low //ORIGINAL : down = -change(low)
trur = rma(max(max(high-low, abs(high-nz(close[1]))), abs(low-nz(close[1]))), lenadx)
plus = fixnan(100 * rma(up > down and up > 0 ? up : 0, lenadx) / trur)
minus = fixnan(100 * rma(down > up and down > 0 ? down : 0, lenadx) / trur)
sum = plus + minus
adx = 100 * rma(abs(plus - minus) / (sum == 0 ? 1 : sum), lensig)
macol = adx > limadx and plus > minus ? lime : adx > limadx and plus < minus ? red :black
//
//BUY OR SELL
buy = macol != black and ((macol == lime and macol[1] == red) or (macol == lime and macol[1] == black)) ? true : na
sell = macol != black and ((macol == red and macol[1] == lime) or (macol == red and macol[1] == black)) ? true : na
//END
That strategy looks like it beats the market by more than 40% when backtested against the last couple months. The source code (in pine script) is here: https://bpaste.net/show/937e9df5278a
I am a novice, and haven't really done hardly any coding before, but I've managed to get gekko running, and I have been struggling to figure out how to code the STC into an indicator for gekko, so that I can try to translate that pine script strategy into a gekko strategy, and run it with some real money, or at least backtest it with gekko and see if it looks like it might work.
I would be willing to pay somebody but don't have much to offer, unfortunately, likely nowhere near enough to make it worth your while. I'm hoping that somebody will be interested in helping port this over to gekko and make it available open-source out of the goodness in their hearts. -- EDIT: Will consider any offers, willing to pay a bounty, name a price and we'll see if I can afford it!
Hi,
can you help me? I'm able to login to a remote server by ssh and start a live gekko, but how to detach and reatach it when closing ssh?
How to deal with output?
Regards,
Dirk
Hi,
can some explain here how to enable telegram messanger notifications?
I want to get an notification on each trade my gekko is doning with let's say some information.
But how to start?
Regards,
Dirk
I'm a newbie, and started using Gekko today accessing data on Poloniex.
1. I have been able to get 2 Market Watcher Gekkos running, But I can't get any more MWs or start any Strategies. Each time I tried, I received an error stating "Child Failure". What can I do? 2. How long do I need to wait watching a Market before I can run a Strategy? 3. Each time I try to run a Gekko Strategy, the process fails. What can I do?
Below solution is only for Gekko CLI.
1. Create new Gmail account from security reasons.
2. Enable access for less secured apps here: https://myaccount.google.com/lesssecureapps
3. Install module emailjs
Code:
cd gekko
npm install emailjs
4. Edit Your configuration file for Gekko CLI
Code:
config.mailer = {
enabled: true, // Send Emails if true, false to turn off
sendMailOnStart: true, // Send 'Gekko starting' message if true, not if false
email: 'newemailaccount@gmail.com', // Your Gmail address
muteSoft: false, // disable advice printout if it's soft
password: 'mypassword', // Your Gmail Password - if not supplied Gekko will prompt on startup.
tag: '[GEKKO] ', // Prefix all email subject lines with this
server: 'smtp.gmail.com', // The name of YOUR outbound (SMTP) mail server.
smtpauth: true, // Does SMTP server require authentication (true for Gmail)
// The following 3 values default to the Email (above) if left blank
user: 'newemailaccount@gmail.com', // Your Email server user name - usually your full Email address 'me@mydomain.com'
from: 'newemailaccount@gmail.com', // 'me@mydomain.com'
to: 'mymainaccount@gmail.com', // 'me@somedomain.com, me@someotherdomain.com'
ssl: true, // Use SSL (true for Gmail)
port: '465', // Set if you don't want to use the default port
}