четверг, 30 ноября 2017 г.

Quik Memory Lick

Примерно за 2 месяца процесс Quik разрастается по памяти примерно в 2.5 раза.
А затем Quik просто виснет.
Будьте осторожны.
Тем кто роботов использует необходимо раз в месяц Quik перезапускать.

При запуске память примерно 240MB



После 2-3 месяцев непрерывной работы память уже 641MB




воскресенье, 19 ноября 2017 г.

WEB API/ Security, Authentication, and Authorization in ASP.NET Web API

https://docs.microsoft.com/en-us/aspnet/web-api/overview/security/

Important

Update-package Microsoft.Asp.Net.WebApi

http://www.c-sharpcorner.com/uploadfile/ff2f08/token-based-authentication-using-asp-net-web-api-owin-and-i/

Add User

use OWinTest

INSERT [dbo].[AspNetUsers] ([Id], [Email], [EmailConfirmed], [PasswordHash], [SecurityStamp],[PhoneNumber], [PhoneNumberConfirmed], [TwoFactorEnabled], [LockoutEndDateUtc], [LockoutEnabled], [AccessFailedCount], [UserName])  

VALUES (N'9f15bdd0fcd5423190c2e877ba0228ee', N'abc@gail.com', 1, 
N'ALkHGax/i5KBYWJ7q4jhJmMKmm2quBtnnqS8KcmLWd2kQpN6FaGVulDmmX12s7YAyQ==', 
N'a7bc5c5c-6169-4911-b935-6fc4df01d313', NULL, 0, 0, NULL, 0, 0, N'Jignesh') 

Migration: Configurate, Init
enable-migrations -ContextTypeName OwinAuthentication.Models.OwinAuthDbContext
Add-Migration -configuration OwinAuthentication.Migrations.Configuration InitialEntities
Update-Database -configuration:OwinAuthentication.Migrations.Configuration -Verbose


https://metanit.com/sharp/aspnet_webapi/5.1.php


https://stackoverflow.com/questions/15176538/net-httpclient-how-to-post-string-value

Microsoft.Owin.Hosting.Start and Stop

https://stackoverflow.com/questions/31562192/owin-stop-server-service


private IDisposable myServer;

public void Start() {
    myServer = WebApp.Start(URL);
}

public void Stop() {
    myServer.Dispose();
}

пятница, 13 октября 2017 г.

Configuration in xml

Need to Configurate in Any .xml MTS

 <IsMorningSessionEnabled>true</IsMorningSessionEnabled>
 <IsEveningSessionEnabled>true</IsEveningSessionEnabled>

 <Contract>10</Contract>         Portion to Add
 <Contracts>100</Contracts>    Max Contracts

<SafeContractsOvs>50</SafeContractsOvs>  - перенос позиции через сессию OVER_SESSION
<SafeContractsOvn>10</SafeContractsOvn>- перенос позиции через ночь OVER_NIGHT

вторник, 10 октября 2017 г.

738t

 // Second Phase After Main Goal is Scored
                    {
                        if (IsPosPositive)
                        {
                            // Mode = 8; --
                            // Mode = 4;
                            //  Mode = 3;
                            //   Mode = 2; // Real
                            //  Mode = 6;
                            Mode = 4;  // not bad
                         // Mode = 3;
                        }
                        else
                        {
                            // 21.09.2017
                            // Mode = 3;

                            // Mode = 4; // Real
                            Mode = 6;




738t

738t Mode 3 Samples with try Mode 6 in Last phase of Cycle

 if (IsPosPositive)
                        {

                           //   Mode = 2;
                          //  Mode = 6;
                         //  Mode = 4;  // not bad
                         Mode = 3;
                        }
                        else
                        {
                            // 21.09.2017
                            // Mode = 3;
                           // Mode = 4;
                            Mode = 6;
}

Mode3 = 11

Mode3 = 10



четверг, 19 января 2017 г.

ToDo 19.01.2017

1. Перерасчет цены текущей позиции с учетом всех трейдов, а не последней средней

2. Задержка сигнала на Триггере TryEntryEnable при входе в Mode

2.1 для Mode = 4 не сразу стоплоссить, чтобы убрать привязку к параметру Atr, 

2/2 для моде 3,  не сразу тэйкпрофить, можно также реализвать с помощью SwingCountEntry  или TryEntryEnable.Reset

четверг, 12 января 2017 г.

736S + SL = 25 in Mode 4

736S + SL = 25 in Mode 4

Test_Z736MP_RI_05_FE_01.xml

 (
        //             (Position.IsLong && XTrend.IsUp && ((double)Position.Price1).IsLessThan(XTrend.High + kAtrStop19 * VolatilityUnit2)) ||
        //             // (Position.IsLong && XTrend.IsDown && ((double)Position.Price1).IsLessThan(XTrend.High + kAtrStop25 * VolatilityUnit2)) ||
        //             (Position.IsShort && XTrend.IsDown && ((double)Position.Price1).IsGreaterThan(XTrend.Low - kAtrStop19 * VolatilityUnit2)) // ||
        //             //  (Position.IsShort && XTrend.IsUp && ((double)Position.Price1).IsGreaterThan(XTrend.Ma - kAtrStop25 * VolatilityUnit2))
        //          );