Code for: 'Ignore' or 'Do Nothing'

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11583 quote
    algotrader
    Participant
    Average
    Hello Traders Please advise if there is a code (or a way) for: ‘Ignore’ or ‘Do Nothing’

    So for example: DownTrend = EMA < EMA[3]

    IF DownTrend THEN Do ‘Nothing’ Else Buy 2 contract at market.

    Thank you for your help, A.

    #11614 quote
    Nicolas
    Keymaster
    Master
    Hi, if you want to do nothing, you don’t have to code anything 🙂 Please explain what you want to do exactly?
    #11618 quote
    Somatolysis
    Participant
    Junior
    why not: UpTrend = EMA > EMA[3]
    IF UpTrend THEN
    Buy 2 contracts at market
    endif
    ?
    #11732 quote
    algotrader
    Participant
    Average
    Hi I’m trading Mean Reversion and I want to go LONG when the market is in down-trend. But some of the times there are false signal to go long. The market suddenly go up and then continue the down-trend I’m looking for a way to avoid those false signal.. By telling the strategy: While going down, do nothing../Avoid the signal But I’m guessing I can use the ‘NOT’ Like: IF NOT DownTrend THEN..
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Code for: 'Ignore' or 'Do Nothing'


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
algotrader @algotrader Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by algotrader
9 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 08/12/2016
Status: Active
Attachments: No files
Logo Logo
Loading...