Click here to Login





                                                   Calling SetHashBrush as a conditional?

  0

0
Josh McCormick
2020-07-10 22:21:12


I'm working on a formula that needs SetHatchBrush called (conditionally) if a simple numeric comparison is true.

Example (in pseudocode):
=============================
if myvar < 10 then SetHatchBrush("Percent20", colorWhite|255);

...unfortunately, I can't come up with the proper syntax to conditionally call SetHatchBrush if my numerical comparison is TRUE. I tried using iff but it didn't seem to like the fact that SetHatchBrush doesn't return any variables.

What's the clever way to do this? Or is this not possible?

Thanks,
Josh McCormick



QuantShare
2020-07-13 13:11:20

  0

Best Answer
It is not possible unfortunately.


No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Better Volume Indicator
Indicator/Price Value on a Specific Trading Date
Trading System based on the Previous Week SPY Return
Money management to Reject Trading Positions Based on their Past ...
Ichimoku Kinko Hyo - Trading Indicator

How-to Lessons
How to create a custom trading indicator
How to remove a chart pane's margins
How to quickly download the most recent EOD data for your stocks
How to optimize the number of positions in a trading system
How to export trading data to a CSV file

Related Forum Threads
Calling a Function from another Function
Function Call
Allow AMM inputs to be set programmatically in script
Help with a Red/Green positive/negative hatched graph?
Regarding Application

Blog Posts
Technical Analysis Using Multiple Timeframes - Second Part
How to measure market strength with the composite tool
How to create a trading system, screen and composite using earnin...
Display several stock market charts with one click
Custom Indicator: Accumulation Distribution Line









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.