为什么会发生这种AttributeError?

时间:2017-11-23 09:28:29

标签: python error-handling attributeerror quantitative-finance quantopian

下午好,

我是学生,我正试图在Quantopian平台上实施WaveTrend Oscillator策略:https://www.tradingview.com/script/2KE8wTuF-Indicator-WaveTrend-Oscillator-WT/ 我想做的是在指标高时出售AAPL,在低指时买入。

它一直给我这个错误:

BindingContext

任何人都可以帮助我吗?

<ContentView
  xmlns="http://xamarin.com/schemas/2014/forms"
  xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"
  ...
  BindingContext="{x:Static vms:DesignTimeData.ProjectListEntryVm}">

1 个答案:

答案 0 :(得分:1)

好吧,我认为我让它正常工作了:

$newUser = User::create();
$userObj = User::find($newUser->id);
$tokenStr = $userObj->createToken('Token Name')->accessToken;

// or try this.

$newUser = User::create();
$tokenStr = $newUser->createToken('Token Name')->accessToken;