Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I am trying to create a script that checks if certain fields are empty.  Can someone show me how to correct this script step that gives false positives?  Testing this with Data Viewer gives the correct "0" if I terminate the script at (CONFIGURATION::Market_On_Close indication) but gives false negatives (1) if I terminate it at (CONFIGURATION::Quantity or later.  I am testing this on records where all the fields have data. Is there a better way of doing this?

 IsEmpty 
(CONFIGURATION::Bar Interval)   or 
(CONFIGURATION::Currency)  or 
(CONFIGURATION::Exchange)  or 
(CONFIGURATION::Market_On_Close indication) or 
(CONFIGURATION::Quantity or 
(CONFIGURATION::Security Type) or 
(CONFIGURATION::Start Time) or 
(CONFIGURATION::Stop Limit Parameter) or 
(CONFIGURATION::Stop Loss Parameter) or 
(CONFIGURATION::Symbol_) or 
(CONFIGURATION::Target Parameter) or
(CONFIGURATION::Trade Direction) or 
(CONFIGURATION::Transmit Flag) or 
(CONFIGURATION::IBKR_account))

 

Edited by dysong3

Your calculation (not script) only tests if the CONFIGURATION::Bar Interval field is empty. Then it goes on to test if any one of the other fields evaluates as True if converted to a Boolean value (which any field that contains a digit other than 0 will).

The simple way to test that none of the fields are empty (if that's what you are trying to do) would be:

Count ( 
CONFIGURATION::Bar Interval ;
CONFIGURATION::Currency ;
CONFIGURATION::Exchange ;
CONFIGURATION::Market_On_Close indication ;
CONFIGURATION::Quantity ;
CONFIGURATION::Security Type ;
CONFIGURATION::Start Time ;
CONFIGURATION::Stop Limit Parameter ;
CONFIGURATION::Stop Loss Parameter ;
CONFIGURATION::Symbol_ ;
CONFIGURATION::Target Parameter ;
CONFIGURATION::Trade Direction ;
CONFIGURATION::Transmit Flag ;
CONFIGURATION::IBKR_account
) = 14

 

Edited by comment

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.