Tarea técnica
Labouchere System has many series and can transfer the Units to any other Series when needed (this function is very important). The coders who really knows this cancellation sytem can apply. Also the coder should have practical usage of phyton language to translate this strategy into phyton to use it in crypto markets. No indicator or chart issues ,but it has many mathematical functions and calculations . the code should be clear ,not complex (simplicity), and well-commented .
Not all ,but a part of strategy is as below :
LABOUCHERE STRATEGY
rules & inputs
Standard Execution: Every trade size is calculated traditionally by summing the first and last elements (units) of the selected active array (serie).
Base serie: [1,1]
SeriescanTrade :A1,A2,B1,B2,C1,C2,D1,D2 //permission ,for now ,the others can not.
// Active Series For LONG positions always are A1,B1,C1,D1; SHORT positions always are A2,B2 ,C2,D2 . THE BELOW SERIES (arrays) need to be shown as INPUTS so we can change units .
// Start opening trade by A1 with long position and open the others in their solid direction and in sequence as below .
A1 : [1,1]
A2 : [1,1]
B1 : [1,1]
B2 : [1,1]
C1 : [1,1]
C2 : [1,1]
D1 : [1,1]
D2 : [1,1]
// New positions should be opened after 5 seconds from the previous one , (we possibly need time for transfer and unit calculation "before" a new order).
// Delay : 5 (seconds),delaying orders function input.
TP&SL : 1 (%1) // TP and SL is equal and calculated by percentage of Traded Asset Value (price) ex: % 1 . ex :BTC (Bitcoin) =80.000 USDT , % 1= 800 usdt
// 1Unit value :1000 // (here 1 unit is equal to 1000 usdt ) ,in mql5 is equal to 1000 USD , BUT in crypto markets is equal to 1000 USDT
// & So we can calculate the trade of 2 Units (1+1) =2000usd and %1 of 2000 usdt = Result is either profit +20 usd TP or a loss of -20 usd SL .