コンマの使用方法が不明なまま
19件の回答
こんにちは,
My question is regarding the use of bracket’s in a martingale type of EA , I have attached an example (.sqw) file below, of type of trading style. Basically, I would like each tab to preform it’s own trade, however it will not function as intended, the 2nd trade will take on the 1st trade, and the 2nd trade will attach itself to the 3rd trade. I would like each trade (tab) to trade with it’s own lot size. Any help will be gratefully appreciated.
0
Sorry, I didn’t see the added tab in the .sqw file, I’ll take a look and get back to you.
0
Could you take the tradePhaseReset tab and apply it to the SHORT2LONG tab, so I could see an example of how the brackets would work within that tab. Thanks
0
This cannot be on the same tab since there is a different logic between them. Reset comes when last trade was profitable but SHORT2LONG requires last trade to be a loser. I have created a new and easy to understand example on brackets for you. See file attached.
There is a condition which contains three parts
- A (market position is flat)
- B (time is from 9 to 11) and
- C (price action condition Close / Open)
For trade to be executed you need A and B and C to be true. While A is obvious, B means that trade will be executed when actual time (hour) is 9 または 10 または 11
C will true when last bar (1) Close is > Open or previous bar (2) Close > Open. At least one of those two needs to be true to have block C true as well.
Notice the brackets and how they enclose these logic blocks. Had you removed them the condition would become basically nonsense. Hope that helps you better understand the brackets logic
0
Thanks Tomas, I’ll give it a try.
0