Skip to content

Conversation

fukktalent
Copy link

Moved the logic to a separate function. Didn't touch the logic itself.

Depending on the flag, the strategy will create orders by tick or candlestick.

I am not quite sure that all of the plugin's functions will work correctly when working on a candle close. I only test it for averaging(averaging by candle close really usefull for me).

@@ -1,8 +1,9 @@
import { PluginInterface, ExecutedOrder, OrderType } from '@debut/types';
import { math, orders } from '@debut/plugin-utils';
import { PluginInterface, ExecutedOrder, OrderType, TimeFrame } from '@debut/types/dist';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't use /dist prefix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants