Skip to content

How xD #14

Answered by jb-lopez
eventpunt asked this question in Help
Discussion options

You must be logged in to vote

You won't instantiate the Trader class. Remove this line

$var = new Trader();

And do you have the TRADER_MA_TYPE_SMA constant set to something? Do you have the trader extension installed? If the answer to both of those is no then you need to use

$ma_type = \LupeCode\phpTraderNative\TALib\Enum\MovingAverageType::SMA;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jb-lopez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #13 on October 11, 2022 20:47.