読み取り専用

フォーラムは現在、読み取り専用のアーカイブとなっています。.

バグ報告やプラットフォームに関する質問はこちら → [email protected]

私たちのコミュニティはDiscordとYouTubeで活動しています。ぜひ参加してください!

ご参加ください Discord YouTube

Counting Variable

2件の返信

読みやすい

カスタマー、bbp_participant、コミュニティ、10件の返信。.

プロフィールを表示

10年前 #115215

Is there any easy way of counting with EAs?

 

e.g. if 9/10 of the last ten candlesticks > EMA 20 then Open Order

e.g. if an event has happened once within a specific time period and you opened an order, don’t open another order within this time period.

 

I presumed it would be a case of setting a variable to be zero in the strategy paramenters then adding one every time an event occurs but I can’t seem to get that to work

0

Tomas Matejka

管理者、sq-ultimate、2件の返信.

プロフィールを表示

10年前 #137581

I can make an example for this. You also upload what you have done so far. It is easily done by setting up a variable and then increasing its value with “Addition” function like

var1 = Addition(var1, 1)

A simple example on how to count trades per day is also here https://strategyquant.com/forum/topic/4377-limit-number-of-trades-per-day/

 

Let me know if you are lost and need an example 🙂

0

読みやすい

カスタマー、bbp_participant、コミュニティ、10件の返信。.

プロフィールを表示

10年前 #137997

ありがとう、トーマス

0

2件の返信を表示中 - 1 - 2件目 (全2件中)