Simulate fof trades in Excel according to defined rules

Job ID: 37677236

Budget: $250 – $750 USD

In English - I want to create a spreadsheet that will simulate trades in cryptocurrency history.
The rules for buying and selling assets (crypto) and simulate gains, losses and value locks on diverse trade database.
I will need to summarize the result.

Example rule you will define:
1 - Every 1 hour buy (x)10 dollars of the asset at market price and close with (y)2% gain (stop gain) and place a stop loss (z) 30%, this position can be leveraged at (o ) 3X and with a market closing date, if it is not closed.
2 - At that same time open a short position (z) 10 dollars of the asset at market price and sell with a 2% gain (stop gain) and place an estop loss (b) of 30% this position can be leveraged at (o) 3X with a market closing deadline, if it is not closed.
3 - If the stop loss or stop gain exceeds the ceiling and floor, it should not be opened and skip the trade at that time. Ceiling and floor are defined by the average value of the maximum and minimum values ​​of the last (d) 3 days.
4 - I need to know the result of each operation, how long it was open, the p&l. the estimated cost and total value of all operations opened up to that moment.
5 - This calculation must be made based on the history of the indicated cryptocurrency, it will be with a granularity of 1 minute and a history of 1 year to 3 years. This history will be in the spreadsheet tab and will originate from binance, I can change the currency to test the same result in the more volatile market.
6 - In the business/order spreadsheet we must indicate the open operations and the details of their results. 7 - I need to have an area to create the rules for item number 2 to do the calculation.
7 - During the trade we will observe


The goal is to test a sequence of trading rules.



In portugues - Quero criar uma planilha que vai simular trades em historico de criptomoeda.
As regras de compra e venda de ativos (cripto) e simular ganhos, perdas e bloqueios de valor em base de dados de comércio diverso.
Vou precisar sumarizar o resultado.

Exemplo de regra que você definirá:
1 - A cada 1 hora comprar (x)10 dolares do ativo a preço de mercado e fecharcom (y)2% de ganho (stop gain) e colocar um stop loss (z) 30%, essa posição pode estar alavancada em (o ) 3X e com data limite de fechamento a mercado, caso ela não seja fechada.
2 - Nessa mesma hora abrir uma posição vendida (z) 10 dolares do ativo a preço de mercado e vender com um (s) 2% de ganho (stop gain) e colocar um estop loss (b) de 30% essa posição pode estar alavancada em (o) 3X com data limite de fechamento a mercado, caso ela não seja fechada.
3 - Se o stop loss ou stop gain ultrapassar o teto e o piso, não deve ser aberto e pular o comércio dessa hora. Teto e piso são definidos pelo valor médio das máximas e mínimos dos últimos (d) 3 dias.
4 - Preciso Saber o resultado de cada operação, quanto tempo ela ficou aberta, o p&l. o custo estimado e o valor total de todas as operações abertas até aquele momento.
5 - Esse cálculo deve ser feito sobre o histórico da criptomoeda indicada, ele estará com granularidade de 1 minuto e histórico de 1 ano a 3 anos. Esse histórico estará na aba da planilha e irá originar-se ad binance, eu posso mudar a moeda para testar o mesmo resultado no mercado mais volateis.
6 - Na planilha de negócios/ordens devemos indicar as operações abertas e os detalhes de seus resultados. 7 - Preciso ter uma área de criar as regras do item número 2 para fazer o cálculo.
7 - Durante o trade vamos observar


O objetivo é testar uma sequência de regras de negociação.



In attach - Dataset exemplo coins
Plan Example - https://docs.google.com/spreadsheets/d/1wgcwh_VliRFCsrpMQucQzFAACUYt6F7aEeQHE2IT9uk/edit#gid=338267304
Related categories: Python Excel Algorithm Mathematics Excel Macros