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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 20,173
» Latest member: nhacaiuytinfashion
» Forum threads: 1,541
» Forum posts: 7,707

Full Statistics

Online Users
There are currently 256 online users.
» 1 Member(s) | 255 Guest(s)
nhacaiuytinfashion

Latest Threads
Gekko development status ...
Forum: Announcements
Last Post: ailynne
1 hour ago
» Replies: 794
» Views: 503,454
New Gekko UI in the works
Forum: Announcements
Last Post: pmkisanstatuscheckaadharcard
5 hours ago
» Replies: 133
» Views: 150,281
Gekko with malware spotte...
Forum: Announcements
Last Post: sabinaholt
Yesterday, 12:18 PM
» Replies: 125
» Views: 86,368
An official Gekko service...
Forum: Announcements
Last Post: sabinaholt
Yesterday, 12:13 PM
» Replies: 81
» Views: 135,542
Gekko 0.6 released
Forum: Announcements
Last Post: sabinaholt
Yesterday, 12:10 PM
» Replies: 104
» Views: 209,829
How to Soft Reset or Hard...
Forum: General Discussion
Last Post: lucifar
10-07-2021, 07:18 PM
» Replies: 22
» Views: 38,143
How to add Binance Future...
Forum: Technical Support
Last Post: Xavier32
10-07-2021, 02:20 PM
» Replies: 47
» Views: 79,346
Bittrex Configuration hel...
Forum: Bittrex
Last Post: yirzolusto
10-07-2021, 07:39 AM
» Replies: 6
» Views: 14,826
[Question] Why does gekko...
Forum: General Discussion
Last Post: cryptocurrency0
10-06-2021, 01:16 PM
» Replies: 16
» Views: 33,568
a couple of technical Que...
Forum: Technical Support
Last Post: mtom78632
10-06-2021, 11:08 AM
» Replies: 25
» Views: 44,670

 
  Common trading mistakes: part two
Posted by: freeforex20 - 10-17-2019, 11:13 PM - Forum: General Discussion - No Replies

Common trading mistakes: part two

Overreliance on software
Most people use some form of technology to assist their trading.
 
For example, you might study chart patterns or use automated alerts and algorithms as prompts to trade.
 
But, as useful as all of these tools are, it is important to remember that they are only tools, and must be employed wisely.
 
Just as your satnav can occasionally direct you to drive into a deep torrent of water because it doesn't know the river has flooded, trading technology isn't something to follow blindly. You still need to keep your eyes open and react intelligently to the signs you see.
 
Car
So when using technology, such as charting software or other analysis tools, it's important that you understand the underlying concepts and the reasons behind what the charts are telling you. This will allow you to see the bigger picture and avoid unnecessary mistakes.
 
Lack of record keeping
Do you remember your first trade? What about the third, or the fifth?
 
If you're new to trading, the details may still be clear in your memory. But in a few months' time will you still be able to describe each step and decision in detail?
 
Unless you keep a trading log or diary, the chances are that this information will be lost. And if you can't remember what you did right, how can you replicate it? Similarly, if you don't know where you went wrong you could easily make the same mistakes again.
 
Your trading diary will let you look back at your experiences with the value of hindsight and learn from them. So what should you record in it?
 
Question
Which of the following is NOT worth putting in your trading diary?
A
Why you decided to trade
B
What you were wearing at the time
C
Where you placed your stops or limits
D
How you felt at the time you opened and closed the trade
 
Reveal answer
Bad timing
Timing is not only the art of good comedy - it's also central to good trading.
 
In the same way that a stand-up artist needs to deliver the punchline at exactly the right moment, you need to time your entry and exit from a market perfectly to maximise any profit or minimise any loss.
 
Timing mistakes are common among new traders. So how can you avoid them? Although getting your timing right isn't an exact science, there are a few tools that will help you to act at the right moment:
 
Chart analysis will help you forecast potential scenarios by revealing market patterns
A trading plan will help you to define your strategy, meaning you're more likely to avoid impulsive actions
Stops and limits will allow you to go about your business without having to monitor the markets constantly
summary
Remember the limitations of software and use it intelligently
Keep a trading diary and reflect on the strategies that have worked well (or not so well)
Use tools such as charts, stops and limits to help you get your timing right when opening and closing positions


  Realtime debug
Posted by: aixbr - 10-08-2019, 10:04 PM - Forum: General Discussion - Replies (2)

Hi, 


I have a simple strategy that is :

strat.init = function() {
        this.addTulipIndicator('ema10','ema',{
                optInTimePeriod:10
        });
        this.addTulipIndicator('ema21','ema',{
                optInTimePeriod:21
        });

}

strat.check = function(candle) {

        const ema10 = this.tulipIndicators.ema10.result.result;
        const ema21 = this.tulipIndicators.ema21.result.result;

        if(ema10>ema21){
                console.log("buy);
        } else {
                console.log("sell");
        }


that is work good in a backtest enviroment.

I already changed the line below in config.js :

config['I understand that Gekko only automates MY OWN trading strategies'] = true

and i am running with this command line :

node gekko --config config.js

but nothing is printed in console when the condition goes true or not.

How can i put it to run in realtime mode !?


  My own neural network
Posted by: lenny2 - 10-04-2019, 10:39 AM - Forum: Strategy Development - Replies (6)

Hi
I wanted to build a strategy that could learn how to adjust. 
Parameters: ADA, 3 months with 60min candles
My first step was to test tried and tested indicators. I started with Tulip, ema.
Attachment: using indicators shows market -37% but strategy did 16%

Next step was to normalize inputs. NN doesn't like 0.00000567. So I normalized to 5.67. I also made sure that all inputs were of the same power(Math) so that no input would overwhelm the algorithm.
I used a feed forward neural network with backpropagation with several hidden layers.
For training, Backtest saved a json file with the results, then it takes the roundtrip data, sees profit % (- or +) and generates training data. This way I have automated the training cycle.
Same parameters with the NN is attachment using NN.
result is 26%

This was just an early test. Going to try add/remove inputs.
I couple of things I've seen. Overfitting the neural network is definitely an issue here. If I feed it too much data, results aren't as good, plus it will behave poorly on other assets. Current version behaves ok when switching assets, but I have seen that is better to train the neural network for each asset as they have distinct behaviours.



Attached Files
.png   using indicatores and candle size.png (Size: 264.55 KB / Downloads: 68)
.png   using NN.png (Size: 271.75 KB / Downloads: 54)

  How to stop and then re-run a strategy without re-warming up
Posted by: Alex.P - 10-02-2019, 09:43 AM - Forum: Strategy Development - Replies (8)

if I have stoped a strategy and then I have to re-run again why do I have to warm it up again?


  Placing manual orders?
Posted by: Thluks - 10-01-2019, 08:29 AM - Forum: General Discussion - Replies (1)

Does Gekko currently support placing manual orders (stop buy, stop sell, limit, etc.) that it will then monitor and execute as soon as the conditions are met?


  Please give me a clue what does the strategy do?
Posted by: Alex.P - 09-30-2019, 03:01 PM - Forum: Strategy Development - Replies (3)

Hi Gekko users

Please help me understand what does this strategy do? What is SMA_long = 1000? SMA_short = 50? etc..


SMA_long = 1000
SMA_short = 50

# SMA Trends
SMA_long = 1000
SMA_short = 50

# BULL
BULL_RSI = 10
BULL_RSI_high = 80
BULL_RSI_low = 60

# BEAR
BEAR_RSI = 15
BEAR_RSI_high = 50
BEAR_RSI_low = 20

# BULL/BEAR is defined by the longer SMA trends
# if SHORT over LONG = BULL
# if SHORT under LONG = BEAR



Thank you for help


  Can I use more than one stradegy in one Gekko?
Posted by: lutianzhou001 - 09-29-2019, 02:03 AM - Forum: Feature Requests - Replies (1)

In the real market there will be more than one stradegy combined. Can I choose more than one stradegy and backtest them and use them into one Gekko in the real market ? For example I will combine MACD and RSI ,which means both MACD and RSI give the signal to buy, I will buy , or , I won't buy.


  Unable to install talib
Posted by: mbeeks999 - 09-25-2019, 06:03 PM - Forum: Technical Support - Replies (11)

Hi all,

I am unable to install talib in my gekko directory. It will provide me with the following error code:

Code:
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /Users/martijnbeeks/anaconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
gyp ERR! stack     at Socket.stream.socket.on (internal/child_process.js:389:11)
gyp ERR! stack     at Socket.emit (events.js:198:13)
gyp ERR! stack     at Pipe._handle.close (net.js:606:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure"
gyp ERR! cwd /Users/martijnbeeks/ProjectY/gekko-develop/talib
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! talib@1.1.2 install: `node ./src/lib/build.js && node-gyp configure && node-gyp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the talib@1.1.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

Does anyone know what I am doing wrong? I am somehow thinking it interferes with Python and I completely removed Python but it was still not working.

Thanks in advance, 

Martijn


  trade with 50%
Posted by: MPrunner - 09-20-2019, 06:08 AM - Forum: Guides - Replies (4)

Hi,

i am new with gekko, but it works now :-)
i want to run 2 gekkos with one trading account. So i have to limit each gekko to a trading amount of 50% ?

can anybody tell me in simple words (i am not a programmer, i read some articles about this but didn't understand it ) where i can tell gekko to trade only with 50% of my amount ?

thank you so much

Mike


  What's the variable holding the last filled buy order price?
Posted by: orpheous - 09-20-2019, 02:30 AM - Forum: General Discussion - Replies (1)

Is there a feature that holds the last filled buy order price that I can include in my strategy?