Bitcoin Forum
June 22, 2024, 08:49:01 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2
1  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: August 25, 2019, 10:54:46 AM
1. So, is there any another way to do that?
2. How can I check file change in QT Bitcoin Trader? If a file was modified

Thank you
D.

1. Hello. Currently there is no other way to communicate between instances.
2. Looks like good idea to add this feature, I'll keep it in todo list.

Thank you
Damjan
2  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: August 23, 2019, 08:34:53 AM
Hi,

I'm testing one strategy and I'm using Qt Bitcoin Trader for staticstics, which are then processed by another app (through log files). Then, I want to send Qt Bitcoin Trader back buy & sell signal.

Can anyone give me a hint, which way is the best. Now I see only communication between two apps through files.

Thank you
Damjan

1. So, is there any another way to do that?
2. How can I check file change in QT Bitcoin Trader? If a file was modified

Thank you
D.
3  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: August 19, 2019, 04:04:30 PM
Hi,

I'm testing one strategy and I'm using Qt Bitcoin Trader for staticstics, which are then processed by another app (through log files). Then, I want to send Qt Bitcoin Trader back buy & sell signal.

Can anyone give me a hint, which way is the best. Now I see only communication between two apps through files.

Thank you
Damjan

Are forums removed on page from centrabit? Where is all the content?
4  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: August 10, 2019, 05:39:17 PM
Hi,

I'm testing one strategy and I'm using Qt Bitcoin Trader for staticstics, which are then processed by another app (through log files). Then, I want to send Qt Bitcoin Trader back buy & sell signal.

Can anyone give me a hint, which way is the best. Now I see only communication between two apps through files.

Thank you
Damjan
5  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: July 29, 2019, 07:05:01 AM
Each script have to run as separated group, it not possible to include from file.

Hi,

How can I call a function from another .js file? Can you give me an example please.

I want to have only main program in QT Bitcoin trader and it will call functions from another files. That way I can better organize my code.

I would like to have classes in one file and at least one for functions.

Thank you and best regards
Damjan

You can send events between two or more scripts, you can find example if you press Help button in Rules panel.

trader.sendEvent? I will look at it. Thank you. This can very be useful. I will maybe use it for some other cases.

But if I want, can I still import file, require ... ?

Thank you Ighor. Just wanted to be sure. By the way, that trader.sendEvent is hidden gem Smiley
6  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: July 28, 2019, 08:11:07 PM
Hi,

How can I call a function from another .js file? Can you give me an example please.

I want to have only main program in QT Bitcoin trader and it will call functions from another files. That way I can better organize my code.

I would like to have classes in one file and at least one for functions.

Thank you and best regards
Damjan

You can send events between two or more scripts, you can find example if you press Help button in Rules panel.

trader.sendEvent? I will look at it. Thank you. This can very be useful. I will maybe use it for some other cases.

But if I want, can I still import file, require ... ?
7  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: July 28, 2019, 10:45:59 AM
Hi,

How can I call a function from another .js file? Can you give me an example please.

I want to have only main program in QT Bitcoin trader and it will call functions from another files. That way I can better organize my code.

I would like to have classes in one file and at least one for functions.

Thank you and best regards
Damjan
8  Economy / Trading Discussion / Re: How to calculate sell after all fees on: March 06, 2019, 06:04:21 PM
Hi everybody,

Thank you for your replies and your hints. I will also consider about the profits. I wanted to trade with little amounts, more times a day and I know that I also must consider bearish or bullish market.

Best regards
Damien
9  Economy / Trading Discussion / Re: How to calculate sell after all fees on: March 05, 2019, 05:32:51 PM
Hi,

i won't trade with such little profit, but also not much bigger than that also.

I playing around with scripts in QT Bitcoin Trader.

Currently I'm trading between USDT and BTC and my take profit is set to 0.3%. If anyone have some recommended strategies to play with then please give reply.
(latest scripts are not online yet)

So thank you for all your answers and suggestions.

Best regards
Damien
Do you have any secondary plan if the market decides to move with the strong bullish or bearish trend? You just take advantage of current flat market conditions and these scripts are designed for flat markets.

Yes, I was thinking about it. Just don't know yet with which strategy should I try first.
10  Economy / Trading Discussion / Re: How to calculate sell after all fees on: March 05, 2019, 01:14:40 PM
Hi,

i won't trade with such little profit, but also not much bigger than that also.

I playing around with scripts in QT Bitcoin Trader.

Currently I'm trading between USDT and BTC and my take profit is set to 0.3%. If anyone have some recommended strategies to play with then please give reply.
(latest scripts are not online yet)

So thank you for all your answers and suggestions.

Best regards
Damien
11  Economy / Trading Discussion / How to calculate sell after all fees on: March 03, 2019, 05:12:55 PM
Hi,

Can someone help me with the formula?

Market fee when buying = 0.1%
Market fee when selling  = 0.15%
If I buy 0.2 BTC at 3800$, at what price must I sell so the profit will be 0.3% in USD?

Can anyone help me, please?

thank you and best regards
Damien
12  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: February 17, 2019, 12:58:27 PM
Hi,

I have problems with showing my real balance from Binance. It shows that my balance is empty. Is this a known problem?

I Have USDT and zero BTC. I Also have some TUSD and it won't show any balance in any pair.



I'm using 1.40.40 64bit version on Windows.

Is it possible that also other currencies are not showing any wallet amounts?


Thank you and best regards
Damien

Can you please give info, how others are trading on Binance?

Thank you
Damien
13  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: February 17, 2019, 12:05:01 PM
my attempt of a neprogramatora Sad


var signal1Status = variablePath + "Signal1.txt";


function readSignalFiles() {
    var scriptName = "readSignalFiles()";
    eventLogger(scriptName + ".START");

    signal1Status = trader.fileReadAll(signal1StatusFile).toString().trim();    
    signal2Status = trader.fileReadAll(signal2StatusFile).toString().trim();
    
    eventLogger(scriptName + ".signal1Status: " + signal1Status);        //what is eventLogger?
    eventLogger(scriptName + ".signal2Status: " + signal2Status);    

    //signalCorrection();

    signal1StatusOld = signal1Status;    
    signal2StatusOld = signal2Status;
    
    eventLogger(scriptName + ".END");
}



Hi EventLogger is function in my scripts, taht you can find in my github.

My signals were meant little different. To get signals from trading view which I newer finished, but I can post an idea how it could be done.

Look below:

Code:
var variablePath = "D:\\Bitcoin\\QT Bitcoin Trader\\QTBitcointTrader\\";

///////////////                  log to file or window                     ///////////////////
var logToFile = true;
var logToWindow = true;
var logFile = variablePath + "TraderLogger.txt";

function eventLogger(tempString) {
    if (logToFile)
        trader.fileAppend(logFile, trader.dateTimeString() + ": " + tempString);
    if (logToWindow)
        trader.log(tempString);
}
14  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: February 17, 2019, 11:48:48 AM
Hi,

I have problems with showing my real balance from Binance. It shows that my balance is empty. Is this a known problem?

I Have USDT and zero BTC. I Also have some TUSD and it won't show any balance in any pair.



I'm using 1.40.40 64bit version on Windows.

Is it possible that also other currencies are not showing any wallet amounts?


Thank you and best regards
Damien
15  Alternate cryptocurrencies / Altcoin Discussion / Re: Missing withrawal balance - BCAP - tokenhub.com on: November 23, 2017, 07:04:57 PM
Hi,

after about three weeks (not less) or a month I finally received BCAP tokens in my wallet.

I don't know, but I was starting to give up. Very slow support and reply response.

Best regards
D.
16  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: November 04, 2017, 02:37:03 PM
Hi Ighor,

I'm having some problems with compiling code on latest Raspian 4.9.

Can you please check log file on links below?
https://mega.nz/#!Ekx1hTBD!rQOD2AXjupn304x0CSTbPftmhCtz_iNnuibqYt4kiBE
https://mega.nz/#!M4ByTRyC!0_KleNX6qN3zd9qQtJ4rBJbA_Qr7BtaQI5k5txfKShc

Thank you and best regards
Damjan
17  Alternate cryptocurrencies / Altcoin Discussion / Missing withrawal balance - BCAP - tokenhub.com on: November 02, 2017, 05:01:58 PM
Hi everyone,

I executed withraw for BCAP tokens on tokenhub.com. Now I'm having the problem, because I didn't receive any in myEtherWallet and my balance on token hub is 0.

I was sending email to tokenHub support and they have stopped responding. Can anyone give me some advice about my problem?

Thank you and best regards
Damjan
18  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: September 21, 2017, 06:09:25 AM
v1.40.09 Released!

- Fixed FeeCalculator crash
- Fixed account open orders filtering and calculations
- UI layout bugs fixed

Wow. That was quick fix.

Thank you
Damjan
19  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: September 21, 2017, 06:06:30 AM
Hello,

Yes I tried that and it didn't work to split with space charecter. Will try again.

thank you
Damjan

You need to split with endline character .split("\n")

Hi Ighor,

I tried that also with code below:
Code:
var variablePath = "D:\\";
var logFile = variablePath + "config.txt";
var string = trader.fileReadAll(logFile);
var array = string.split("\n");

trader.log("1.:" + array[0]);
trader.log("2.:" + array[1]);
trader.log("3.:" + array[2]);
trader.log("4.:" + array[3]);

and as result I get

Code:
19:15:51> 1.:#comment value1=25.0 #comment value2=25.5 value3=25.6
19:15:51> 2.:undefined
19:15:51> 3.:undefined
19:15:51> 4.:undefined

I have uploaded config file to cloud server https://ufile.io/jv2ni

Thank you
Damjan

Try to add ';' at end of each line and use ';' as split value.
It more JavaScript question than Qt, so better ask JavaScript experts.

O.k. This is how I do it now Smiley

Thank you Ighor
Damjan
20  Bitcoin / Project Development / Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux] on: September 20, 2017, 05:23:19 PM
Hello,

Yes I tried that and it didn't work to split with space charecter. Will try again.

thank you
Damjan

You need to split with endline character .split("\n")

Hi Ighor,

I tried that also with code below:
Code:
var variablePath = "D:\\";
var logFile = variablePath + "config.txt";
var string = trader.fileReadAll(logFile);
var array = string.split("\n");

trader.log("1.:" + array[0]);
trader.log("2.:" + array[1]);
trader.log("3.:" + array[2]);
trader.log("4.:" + array[3]);

and as result I get

Code:
19:15:51> 1.:#comment value1=25.0 #comment value2=25.5 value3=25.6
19:15:51> 2.:undefined
19:15:51> 3.:undefined
19:15:51> 4.:undefined

I have uploaded config file to cloud server https://ufile.io/jv2ni

Thank you
Damjan
Pages: [1] 2
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!